Add New Page: You are not allowed to add pages Select section/namespace. New page title.

Installing WordPress

This page contains instructions for downloading, installing, and configuring Wordpress (an application for creating websites) on your server.

What you need:

  1. Ubuntu (12.04 or later) or Debian Linux installed on your server
  2. The IP address of your server
  3. An internet connection
  4. Willingness to use the command line


Open up a terminal (Ctrl+Alt+T) and run the following commands, line by line, to download and install Wordpress:

  sudo sh -c "echo deb $(lsb_release -c |cut -f2) universe >> /etc/apt/sources.list"
  sudo sh -c "echo deb $(lsb_release -c |cut -f2)-updates universe >> /etc/apt/sources.list"
  sudo apt-get update && sudo apt-get install -y apache2 mysql-server wordpress

During installation, you may be asked to create a password for the MySQL root user. Create a strong and unique password and be sure to record it somewhere safe!

Run the following commands, line by line, to finish the installation:

  sudo service apache2 reload
  sudo ln -s /usr/share/wordpress /var/www/wordpress
  sudo gzip -d /usr/share/doc/wordpress/examples/setup-mysql.gz
  sudo bash /usr/share/doc/wordpress/examples/setup-mysql -n wordpress localhost

Open http://localhost/wordpress in your browser and fill out the form to finish the Wordpress setup.

Now run the following commands in the terminal, line by line:

  sudo rm /var/www/index.html
  sudo cp /var/www/wordpress/index.php /var/www/index.php
  sudo cp /var/www/wordpress/.htaccess /var/www/.htaccess
  sudo sed -i -e s/"require('.\/wp-blog-header.php');"/"require('.\/wordpress\/wp-blog-header.php');"/ /var/www/index.php

Finally, run the following command, but replacing <server-IP-address> with the IP address of the web server:

  sudo ln -s /etc/wordpress/config-localhost.php /etc/wordpress/config-<server-IP-address>.php

Go back to your browser and login as the admin user you created and go to Settings→General.

In the field Wordpress Addresss (URL), enter the following, but with the IP address of your server:


Similarly, in the field Site Address (URL), enter the following, but with the IP address of your server:


Click Save Changes at the bottom of the page.

Congratulations, you've installed WordPress! Anyone on the local network can access your website by entering your server's IP address in their browser.

development_resources/application_server/installing_wordpress.txt · Last modified: 2013/12/06 17:29 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported