Location : Web Hosting - Web Hosting Knowledge Base - Wordpress CMS Tutorial

Manually install wordpress in hosting account

Installing wordpress is a simple process, WordPress is popular of it's Famous 5 minute install process. We are including some additional information here to prepare hosting account before executing the WordPress installation script.

Setup database

Before doing anything, you must setup a database in your hosting account, WordPress requires a database for storing it's tables and data and the tables and some initial data is created when executing the WordPress installation script. You can follow this steps to setup MySQL database and grant user access, write down the database name, mysql username and password after setting up the database in your hosting account, you will need this info in the installation process later.

Download WordPress

After setting up the MySQL database, you can proceed on to download the WordPress program, there are two options available here, you can either use FTP Client to download the .zip version from WordPress download site or grep the .tar.gz version and extract it directly in the SSH shell prompt of your hosting account.

FTP Upload Download

Goto WordPress download site, click the .zip version of WordPress program file and save it to your computer, extract the file with your compression tool and place it in a folder. Rename the wp-config-sample.php file to wp-config.php, then open up wp-config.php using a text editor and fill in the database connection details (remember the details you have just write down after the database setup process ?) After saving the changes to the file (be sure to save it as ASCII Text file otherwise your WordPress program may not work), FTP all the files to the your hosting account and place them in public_html folder (if you want to access the wordpress site using http://www.yourdomain.com/) or public_html/folder_name (if you want to access the wordpress site using http://www.yourdomain.com/folder_name/).

Changing wp-config.php

// ** MySQL settings ** //
define('DB_NAME', 'username_dbname'); // The name of the database
define('DB_USER', 'username_dbusr'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

Using SSH

SSH in your hosting account and execute the following command in shell :-

wget path_to_wordpress_.tar.gz
tar -xvzf wordpress.tar.gz

Place the files in appropriate folder, rename the wp-config-sample.php to wp-config.php and change the database settings in the file accordingly.

Execute WordPress installation script

When files are ready in your hosting account, you can proceed to running the WordPress installation script by issuing the http://www.yourdomain.com/wp-admin/install.php or http://www.yourdomain.com/folder_name/wp-admin/install.php depending where you place the files in your hosting account.

That's all, WordPress is now ready to work.

If you are new to WordPress, you may want to go through the WordPress Lessons at the WordPress Official website to get a better idea of using the program.