Installing WordPress

From OCS Support Wiki

Jump to: navigation, search

[edit] What is WordPress?

WordPress is a popular blogging software that focuses on aesthetics and usability. It is written in PHP and free to obtain and use.

[edit] cPanel

Installing WordPress in Cpanel is very easy. Our Cpanel's have Fantastico which allows you to install many software titles, including WordPress, with just one click. Go to your Cpanel control panel and click on "Fantastico". In the selection of software, find and click on WordPress. Then answer the questions on the side (don't worry, they're easy questions like what password you want to use, what is you e-mail address, etc.), and you're done!

[edit] Webmin

On Webmin, WordPress must be installed manually. Fortunately, this isn't a difficult thing. Simply connect via SSH to your account and run the following commands:

cd ~/public_html
wget http://www.wordpress.org/latest.tar.gz
tar xfz latest.tar.gz
rm -f latest.tar.gz
mv wordpress/* .
rm -Rf wordpress
chmod 777 .

These commands will install WordPress into your public_html directory, which means it will be the primary application on your website. If you want to install WordPress into a subdirectory on your site (like mysite.com/blog), change the first line above to reflect the new directory.

Once you've done this, go to http://www.yoursite.com/ (replace yoursite.com with your actual domain name) to confirm the files are correctly placed. You should see something similar to this:

There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

The words "create a wp-config.php file through a web interface" should be a link. Click this link and follow the steps in the wizard to finish the install. You can find out how to create databases in Webmin, but one is already setup by default for you with the same name as your Webmin username. You can use this, along with your Webmin username and password, when asked for the database connection details. However, for security reasons, you will probably want to create a separate database and MySQL username, so that if your WordPress install is ever compromised, your website username and password isn't.

After you have completed the setup, we recommend you run:

chmod 755 ~/public_html.

via SSH to secure your public_html directory again.