WordPress Quick And Easy Custom Installation Guide

WordPress is a powerful yet easy-to-use publishing platform. Although it is typically thought of as blogging software, WordPress can do much, much more and can run almost any kind of website (see 30 Untypical WordPress Sites for examples).

The Site Manager lets you easily install one copy of the WordPress publishing platform (blog), but multiple WordPress installations under one hosting account require you to download and install the WordPress software manually. Fear not, however, because the process is very simple and it can be performed entirely from the File Manager!

Note: You must have MySQL and PHP installed from the Site Manager > Install & Manage section prior to following these directions. If you have another installation of WordPress on your account, you have MySQL and PHP already.

Create a new directory
If you haven't done so already, create a new folder for your new WordPress blog. You can create a directory using the File Manager, an FTP client, or SSH command line. In this case, I am planning to use WordPress for the home page of a new website, example.com. I have already created the folder /var/www/example.com and I have already added example.com to the Site Manager > Domains section, setting the "Web Directory" to Custom and entering /var/www/example.com as the custom web directory path..

Download and unpack WordPress
Using either the File Manager or an SSH command line, switch to the directory you've just created for your new block. In this example, you would make sure you are in the /var/www/example.com directory before continuing. Once you are in this folder, download the WordPress software by executing the following command from the File Manager or an SSH command line:

Code:

curl http://wordpress.org/latest.tar.gz | tar -xzv --strip-path=1

Create a new database
Create a new MySQL database for the additional WordPress blog by executing the following command from the File Manager or an SSH command line, replacing databasenamehere with a name for the new database. Do not include characters other than letters, number, and the _ underscore (no spaces, no periods, etc.). There will be no output from the following command, so do not be alarmed if you see nothing returned when executing this command in File Manager.

Code:

mysqladmin create databasenamehere

If you have phpMyAdmin installed on your account from Site Manager, you may also create the database using phpMyAdmin instead..

Finish the setup in your web browser
Visit the appropriate URL in your web browser to complete the WordPress setup in your web browser. In this case, I would simply visit http://example.com/ and follow the guided setup wizard, and that's it!

When setting up WordPress, use the following database configuration settings:

Database Name: this is whatever name you used in step 3 above

User Name: root

Password: this is the MySQL root password you chose when installing MySQL from Site Manager

Database Host: leave this as it is (localhost)

Table Prefix: leave this as it is (wp_)

If you've forgotten your MySQL root password, you can execute the following command from the File Manager or an SSH command line to retrieve it:

I prefer to always use the fully qualified domain name for clarity. You may name the folder anything you wish, of course, so if you prefer to use /var/www/example instead it will still work.

You can also follow the same steps to manually install the latest version of WordPress in any folder on your server (say, /var/www/html/blog), not necessarily as the home page for an additional domain name as shown in this example.

One thing I ran into during this install, (which was very easy... thanks for the awesome instructions!), was that if you want to use pretty permalinks (and who wouldn't) you have to make sure that httpd.conf allows Override. I had to add this to my file:

Just a quick question.. it was mentioned that you can install WordPress in a separate folder within your main website. I was just curious if when I get to the point of following the instruction during the web Config setup, if I would still use "root" for the username?

Yes in a Site Manager account you can still use root as the username. Actually you have the option of creating a user via PhpMyAdmin if you want that is for just your Wordpress install if you want also and you could use that if you wanted to but that is a personal preference.

httpd.conf and wp-cron

Originally Posted by rgkopchak

One thing I ran into during this install, (which was very easy... thanks for the awesome instructions!), was that if you want to use pretty permalinks (and who wouldn't) you have to make sure that httpd.conf allows Override. I had to add this to my file:

<Directory "/var/www/example.com">
AllowOverride All
</Directory>

Then restart the server. (This is under 3.0 if it matters).

Thanks again!

I'm having another issue when installing into "/var/www/example.com"

I've updated httpd.conf as far as I can tell...
But within wordpress, I can no longer schedule posts, nor will the "wp super cache" plugin work.

Both features rely on "wp-cron.php"..... And it seems that both cannot access that file. The file is there, and has the correct permissions.

This issue is present whenever i try to install wordpress in var/www/example.com....

If I do the same standard install inside var/www/html/example.com everything works fine...

Any help? I'm guessing there's something else I need to be doing to the httpd.conf file??

Check the error_log in /var/www/httpd/ and see if there are any errors for wp-cron.php. It is simply a plain text file with each error written to a line. You can read the file in something like note pad or one of the plain text editors like EditPlus or Crimson listed in my sig.

You might need to add the full set of features used in your main domain in the httpd.conf file. See this page for information on how to do that. http://wildjokerdesign.net/faq/how-d...condary-domain Don't forget you need a restart for changes to httpd.conf to take effect.