"WordPress is a state-of-the-art semantic personal publishing platform with a focus on aesthetics, web standards, and usability. What a mouthful. WordPress is both free and priceless at the same time." --WordPress.org
- You are familiar with either SSH or SFTP, as you will either have to set up the files on OCF servers on command line, or set up the files on your computer and upload them to OCF with an SFTP client.
- You have read the Web application checklist and are ready to install a web application. If you haven't gone through this checklist, please do so now before continuing. The checklist includes setting up a web directory (makehttp) and a MySQL database (makemysql).
Installation of WordPress consists of two parts: getting the installation files on the webserver, then going through the web configuration wizard.
Getting the files on the webserver
This step can be either performed on the command line with SSH or performed using SFTP. You need only pick one.
On the command line
Log in to OCF using SSH and issue the following commands:
Get the installation files from the WordPress website:
Decompress and extract the installation package. This will create a directory called wordpress and decompress the wordpress files into it:
tar -xvzf latest.tar.gz
Change your workind directory to the new wordpress directory:
Rename the sample config:
mv wp-config-sample.php wp-config.php
Change permissions on the file so others can't read your database password:
chmod 600 wp-config.php
Using your favorite command line text editor (or nano if you don't have a favorite), edit the config.php file and put in your database login information for the MySQL database you created in the Web application checklist:
you will need to change the following lines:
define('DB_NAME', 'aoaks'); // The name of the database, which is the same as your account name define('DB_USER', 'aoaks'); // Your MySQL username, which is the same as your account name define('DB_PASSWORD', 'dJ6JePve'); // ...and password, which is randomly generated by '''makemysql''' (see Web application checklist) define('DB_HOST', 'mysql');
In this example I have filled in the values for the OCF user "aoaks". REMEMBER: that is your "database" password, not your OCF account password.
Press Ctrl+x, y (yes to save changes), and enter when you are done to save the file.
move back out to the parent directory:
Move this wordpress directory into your web directory. You can change the name of the directory to blog if you prefer:
mv wordpress ~/public_html/blog
Download the latest installation zip file to your desktop and extract its contents:
Inside the directory the Windows unzipper created (wordpress-2.3.1 in this case) is the folder of interest (wordpress). This is what actually contains the application files, so from now on when I refer to the "wordpress" folder, i mean this folder. Inside the "wordpress" folder, find the file named wp-config-example.php and rename it to wp-config.php:
Open the wp-config.php file in notepad. DO NOT USE A WORD PROCESSING PROGRAM LIKE MICROSOFT WORD. You will need to modify the first four lines that start with "define":
In this example I have filled in the values for the OCF user "aoaks". Please consult database login information for the values you should enter, including the MySQL password which is randomly generated by makemysql. REMEMBER: that is your "database" password, not your OCF account password.</p>
Save and quit when you are done
You will now need to upload the "wordpress" folder to your "public_html" directory on OCF servers. Connect to OCF using an SFTP client and upload the folder. Once it's uploaded, you can rename the copy on the server to something more convenient (like blog):
Go into the wordpress directory on the OCF server (now named blog) and find the file named wp-config.php. You need to modify the permissions on this file so that others can't read your database password. In WinSCP, go to file Properties. There will be something similar for different SFTP clients. Enter an octal value of 600 and click OK:
- You can close the SFTP client at this point and delete the copy of wordpress on your desktop.
Finishing with the web configuration wizard
Please note that the instructions below are for the previous web configuration wizard from WordPress. WordPress has streamlined the process now, which makes it easy for you to set your own password from the beginning. :)
Point your web browser to the your webspace, followed by whatever you named the directory in the previous section (I named it blog).
Scroll down to the bottom of the screen. Enter the title of your new blog and your email address, then press "Install WordPress":
The installation wizard will give you your username (admin) and a temporary password. Copy that password into your clipboard and click the "wp-login.php" link:
Enter the login name "admin" and the paste the password from your clipboard. Then click "Login":
This is your blog administration page. The first think you should do is change your password to something more memorable, so click the "My Profile" link:
Scroll down to the bottom of the page and enter your new password in the "Update your password" section. Then click "Update Profile":
Thats it! Your blog is now accessible under the URL you entered in step 1: