WordPress can be installed via
apt-get install wordpress command as package through the universe repositories. We have explained the method for Rackspace Cloud Server. Actually, the command is easy to run than our described method to Install WordPress on Rackspace Cloud Server (Ubuntu 14.04 PVHVM). We do not use apt-get install wordpress command to install WordPress (on Debian and Ubuntu) as by default, for a new user, this is not the standard way of serving dynamic webpages – moving, shifting might get complicated or some plugin might not work properly. As not all the Plugins are created or maintained by WordPress dot ORG, we actually can not give any warranty of standard way how WordPress plugin works. For example, you might have to change the path manually in some plugins.
apt-get install wordpress and Cloud Installation of WordPress on Ubuntu
Apart from using apt-get install wordpress function, there is also alternative Cloud Installation of WordPress available on Ubuntu via Juju Charm. To make the clear difference to the new users, we are not describing the Cloud Installation of WordPress on Rackspace Cloud Server. That way is more complicated as you’ll need to edit the settings file. That way is good for installation of WordPress en mass, i.e. for the clients.
However, there are other methods to automate installation more precisely using OpenStack specific usages. These methods require advanced knowledge on OpenStack itself, we do not want to make a new user confused. We are describing the apt-get install wordpress function to install WordPress as readers often search for this method.
Steps for Installing WordPress by apt-get install wordpress function
Follow the guide Install WordPress on Rackspace Cloud Server (Ubuntu 14.04 PVHVM) until you reach the sub header “Preparation”.
Tilde (~) represents a command, you must not copy that part and paste to your command line tool. Hash ( # ) represents our instruction. We are logged in as
sudo will not be required in most commands.
~ ssh firstname.lastname@example.org
# do not copy paste anything on your Terminal window before the
# command like spaces, hash before the S of ssh
The authenticity of host '184.108.40.206 (220.127.116.11)' can't be established.
ECDSA key fingerprint is 89:35:46:1b:cb:77:14:8f:86:54:36:38:bt:3c:fa:c0.
Are you sure you want to continue connecting (yes/no)?
# press y and hit Enter key
# welcome message
# update and upgrade. && joins two commands
~ sudo apt-get update && sudo apt-get update
# it will ask to enter a new UNIX password and repeat it
# no password will be visible as masked characters - nothing will appear
You need to a symbolic link to the Apache2 directory
/var/www/html , the WordPress installation will be placed in
~ ln -s /usr/share/wordpress /var/www/html
This script configures MySQL server :
~ sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost
# wordpress is database name
# localhost is database server
# for virtual hosts you'll require to supply the domain name
~ sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress_server blog.myserver.com
# change wordpress_server
# change blog.myserver.com
chown the source folder :
~ chown -R www-data /usr/share/wordpress
If you face any error, probably you need to move
~ /etc/wordpress/config-localhost.php config-localhost.php.org && sudo mv wp-config.php wp-config.php.org
That is it.