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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

development_resources:application_server:installing_wordpress [2013/12/06 17:29] (current)
Line 1: Line 1:
 +====== Installing WordPress ======
  
 +This page contains instructions for downloading,​ installing, and configuring Wordpress (an application for creating websites) on your server.
 +
 +==== What you need: ====
 +
 +  - Ubuntu (12.04 or later) or Debian Linux installed on your server
 +  - The IP address of your server
 +  - An internet connection
 +  - Willingness to use the command line
 +
 +==== Instructions ====
 +
 +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 http://​archive.ubuntu.com/​ubuntu/​ $(lsb_release -c |cut -f2) universe >> /​etc/​apt/​sources.list"​
 +
 +    sudo sh -c "echo deb http://​archive.ubuntu.com/​ubuntu/​ $(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**!
 +
 +{{:​screenshot_from_2013-12-04_21_07_23.png?​direct|}}
 +
 +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.
 +
 +{{:​screenshot_from_2013-12-04_21_12_00.png?​direct|}}
 +
 +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. ​
 +
 +{{:​screenshot_from_2013-12-04_21_13_45.png?​direct|}}
 +
 +In the field ''​Wordpress Addresss (URL)'',​ enter the following, but **with the IP address of your server**:
 +
 +    http://<​server-IP-address>/​wordpress
 +
 +Similarly, in the field ''​Site Address (URL)'',​ enter the following, but **with the IP address of your server**:
 +
 +    http://<​server-IP-address>​
 +
 +Click ''​Save Changes''​ at the bottom of the page. 
 +
 +{{:​screenshot_from_2013-12-04_21_14_40.png?​direct|}}
 +
 +Congratulations,​ you've installed WordPress! Anyone on the local network can access your website by entering your server'​s IP address in their browser.
 +
 +{{:​screenshot_from_2013-12-04_21_17_44.png?​direct|}}
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