Easy WordPress Installation on Ubuntu 14.04

This is a very simple way to install Wordpress on your new Ubuntu 14.04 OpenVZ VPS Hosting image from InterServer.

The instructions were verified on InterServer`s OpenVZ VPS Hosting service, utilizing Ubuntu 14.04 64-bit.


  • LAMP installed. See our instructions.
  • InterServer’s OpenVZ VPS Hosting with Ubuntu 14.4 64-bit (instructions are for minimal distribution, but should work for regular distribution as well).
  • Putty or similar SSH client
  • root login and password or an account capable of sudo

Install Worpress

  • As always, will start with an update: sudo apt-get update
  • Now install wordpress: sudo apt-get install wordpress

We are 40% of the way there! We have Wordpress installed on the server, but we have to let Apache know where it is. So will create a link between yourserver.com/wordpress, and /usr/share/wordpress, where the actual installation exists:

  • sudo ln -s /usr/share/wordpress /var/www/html/wordpress

Because, we already have MySQL installed (from the instructions for installing LAMP, hint, hint), we can now let Wordpress setup a database:

  • sudo gzip -d /usr/share/doc/wordpress/examples/setup-mysql.gz
  • sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost

We just created a wordpress database running on localhost. But this means that our configuration is expecting us to access this from the localhost url, since this is a VPS, we have to make a change, and customize it to your domain or ip (change yourdomain to your address):

  • cd /etc/wordpress
  • sudo ln -s config-localhost.php config-yourdomain.com.php <-Keep this step in mind, if you need to change the server address later.

Almost there! Let’s restart Apache:

  • sudo service apache2 restart

When you go to yourdomain.com/wordpress - you should see this screen:

Fill it out and proceed all the way:

We are not done! We have to plan for the future. Do we want to run updates from within the admin dashboard? Sure!

  • sudo chown -R www-data /usr/share/wordpress

If your blog is where you want it, you are done!

There are times when you stage with one address, and end up going with another. This can be configured easily:

We can link your current configuration file, with your new configuration file. So if you staged at test.com, and are migrating to production.com, simply issue this command:

  • sudo ln -s /etc/wordpress/config-test.com.php /etc/wordpress/config-production.com.php
  • Then in your administrator dashboard, you can configure your domain if you accessed it through ip. Login as administrator and choose Settings -> General.

For additional documentation on Wordpress, please visit http://codex.wordpress.org/Main_Page

This website is supported by our affiliation with web hosting companies. We encourage you to visit our friends at Interserver. They really do offer $6 per month VPS Hosting. Linux, windows and cpanel available, have super fast service, and they care about their customers!

See more articles in: Instructions, InterServer, Ubuntu

comments powered by Disqus