This tutorial is for installing WordPress to power your entire website. You should modify the instructions accordingly if you wish to install WordPress in a subdirectory (in particular, don't remove your existing web directory and extract WordPress to web/wordpress or some other directory).
Before you install WordPress, you will need a MySQL database. If you requested one when your account was created, you can find its password in an email that was sent to your group account's inbox. If you do not have an account, please request one by emailing email@example.com.
- First, you should SSH to your account. See http://www.hcs.harvard.edu/tutorials/login if you haven't done this before.
- Make sure you are in your home directory. If you're not sure, just run
- If you don't have a website that you want to keep on your account, run
rm -rf web
to make sure that this will be a clean setup. If you want to back up the website you have currently, instead run
mv web web.old
- Run these commands:
tar -xzvf latest.tar.gz
mv wordpress web
mv wp-config-sample.php wp-config.php
- Now you're editing
wp-config.php. Find the relevant lines and change them to:
define('DB_NAME', 'account'); define('DB_USER', 'account'); define('DB_PASSWORD', 'passwd'); define('DB_HOST', 'mysql.hcs.harvard.edu');
accountwith your group account name and
passwdwith your MySQL password.
- Hit ctrl-x to quit, and make sure you type 'y' to save your changes.
fixwebfilesto fix the permissions of your files so they appear on the web.
- Now navigate to:
accountwith your account name) and follow the instructions.
Please let us know if you have any questions or problems with these instructions by emailing firstname.lastname@example.org.