Good ol'e Wordpress... Let's try with LXC :-D
Base Assumptions: (updated Ubuntu 13.04 Desktop)
Network Bridged & Manager Disabled:
As mentioned in a previous post.
Install LXC, Build & Configure a container
cooter:~ flash$ ssh flash@gordon Welcome to Ubuntu 13.04 (GNU/Linux 3.8.0-25-generic x86_64) System information as of Sat Jul 6 06:02:10 EDT 2013 System load: 0.04 Processes: 201 Usage of /: 0.6% of 911.11GB Users logged in: 1 Memory usage: 27% IP address for lxcbr0: 10.0.3.1 Swap usage: 0% IP address for br1: 192.168.27.30 Last login: Sat Jul 6 05:44:14 2013 from new-host.hom flash@Gordon:~$
Network Bridged & Manager Disabled:
As mentioned in a previous post.
Install LXC, Build & Configure a container
flash@Gordon:~$ sudo apt-get install lxc flash@Gordon:~$ sudo lxc-create -t ubuntu -n wp1 flash@Gordon:~$ sudo nano /var/lib/lxc/wp1/config lxc.network.link = br1 flash@Gordon:~$ sudo lxc-start -n wp1 Ubuntu 13.04 wp1 console wp1 login: ubuntu Password: ubuntu Last login: Sat Jul 6 10:14:27 UTC 2013 on lxc/console Welcome to Ubuntu 13.04 (GNU/Linux 3.8.0-25-generic x86_64) ubuntu@wp1:~$ sudo apt-get install nano ubuntu@wp1:~$ sudo nano /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.27.40 network 192.168.27.0 netmask 255.255.255.0 broadcast 192.168.27.255 gateway 192.168.27.1 dns-nameservers 192.168.27.1 8.8.8.8 8.8.4.4 ubuntu@wp1:~$ sudo ifdown eth0 ubuntu@wp1:~$ sudo ifup eth0 ubuntu@wp1:~$ ping www.google.com ubuntu@wp1:~$ sudo shutdown -h now
flash@Gordon:~$ sudo lxc-start -n wp1 -d flash@Gordon:~$ sudo lxc-ls --fancy NAME STATE IPV4 IPV6 AUTOSTART --------------------------------------------- wp1 RUNNING 192.168.27.40 - NO flash@Gordon:~$ flash@Gordon:~$ ssh ubuntu@192.168.27.40 ubuntu@wp1:~$ sudo apt-get install wordpress
# One thing you should note is this # We will need to set an FQDN of course. apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ubuntu@wp1:~$ sudo nano /etc/hosts 127.0.1.1 wp1.mongo.com wp1 ubuntu@wp1:~$ hostname -f wp1.mongo.com ubuntu@wp1:~$ sudo service apache2 restart * Restarting web server apache2 ... waiting [ OK ] ubuntu@wp1:~$ sudo ln -s /usr/share/wordpress /var/www/wordpress ubuntu@wp1:~$ sudo apt-get install mysql-server ubuntu@wp1:~$ sudo gzip -d /usr/share/doc/wordpress/examples/setup-mysql.gz ubuntu@wp1:~$ sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost ubuntu@wp1:~$ sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wp1_mongo_com wp1.mongo.com ubuntu@wp1:~$ sudo service apache2 restart Goto http://wp1.mongo.com/wordpress to setup
Comments
Post a Comment