WordPress installation is very easy now a days. Most of the Hosting service providers are giving simple options to install WordPress application in “1-click apps” or using “Fantastico addon script”. This is easiest way to installation. But advanced users saying “Manual installation is the best method to secure your data correctly”. Most of the hosting providers offer cPanel with Fantastico software. Get managed web hosting at Peer1.com. Fantastico makes easy anything to install in your server. But what if you don’t have a Fantastico or similar one click installation software in your server? This tutorial helps you to install wordpress manually in your hosting server without Fantastico.
Manual WordPress Installation Guide:
Prerequisites for WordPress installation manually
- Make sure that your server has pre-requirements to install WordPress
- Download WordPress zip file from www.wordpress.org
- Login to cPanel and go to MySQL databases.
- Create Database name, username and password.
- Link User with Database and Give all privileges to user on database.
- Unzip the WordPress zip file. Rename the wp-config-sample to wp-config.
- Edit the database name, user name and password in wp-config file.
- Upload the contents of WordPress unzipped file to root (public_html).
- Go to www.example.com/wp-admin/install.php. Replace example.com with your blog domain name.
- Fill up the blog title and tagline and click continue. WordPress will show successful installation message with WordPress admin username and password.
Server Requirements for WordPress:
1. To run WordPress your host just needs a couple of things:
- PHP version 4.3 or greater
- MySQL version 4.1.2 or greater
That’s really it. WordPress recommends Apache or Nginx as the most robots and feature server for running WordPress, but any server that supports PHP and MySQL will do. Most of the servers have these things, but better you can contact your hosting support to make sure.
2. Download WordPress zip file from www.WordPress.org
Go to www.wordpress.org. Click on the download button. Then Click on the download button to download the zip format. Downloading is going on in my computer. Until download completes, we will do next step.
3. Create Database Details in MySQL in cPanel:
Go to your hosting account cPanel. There you have already provided MySQL databases option. Click on it. Create a new database. Giving database name as “wordpress” is not compulsory but it is good. I created as “wordpress”.
How to create Database in MySQL in Hosting Control Panel?
Then click on “create or Add user” option. Create one database user with the name of “WordPress”. But my Hostgator allows only 7 characters. So I created “wpress” as database user. Then I gave password for user.
Create Database User and Password in MySQL:
Now go and check the MySQL databases again and check whether the created one available or not. Yes. There it is. But it is not in the same name I gave when created. As I have multiple blogs in same hosting account, my hostagator MySQL database automatically rename it as follows
Database Name: redisred_WordPress
Database User: redisred_wpress
No change in password.
Database name and database user for WordPress
Note down the above names so that we can use them in our next steps.
Once I created the database name, database user and password, now I search the option for adding the user to the database. There it is, “Add user to database”. Selected user “redisred_wpress” and database “redisred_WordPress” and click add. Now MySQL asks what privileges to give for user over database. Select all and give privileges on all actions. Then click on “make changes”.
Database Privileges to User in MySQL for wordpress
Note: If you have PhpMyAdmin in your cPanel, you can create the above things there instead using MySQL. For help, read WordPress install guide.
4. Unzip and Configure wp-config file:
The download which I gave on step 2 completed. Now unzip the WordPress download. Unzip completed. Now I can see the folder “WordPress”. Just open the unzipped folder and search for “wp-config-sample” file. Rename it as “wp-config”.
Now open the wp-config file in notepad.
There you will see the following:
// ** MySQL settings – You can get this info from your web host ** // /** The name of the database for WordPress */ define(‘DB_NAME’, ‘putyourdbnamehere’); /** MySQL database username */ define(‘DB_USER’, ‘usernamehere’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘yourpasswordhere’); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’); /** Database Charset to use in creating database tables. */ define(‘DB_CHARSET’, ‘utf8′); /** The Database Collate type. Don’t change this if in doubt. */ define(‘DB_COLLATE’, ”);
You should add your details for database, database username database password and hostname. Hostname is ‘localhost’ in most of the cases. Check here some possible host values as per your hosting provider. Leave the next two things char-set and collate as unchanged.
See how I did it.
// ** MySQL settings – You can get this info from your web host ** // /** The name of the database for WordPress */ define(‘DB_NAME’, ‘redisred_WordPress‘); /** MySQL database username */ define(‘DB_USER’, ‘redisred_wpress‘); /** MySQL database password */ define(‘DB_PASSWORD’, ‘******‘); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost‘); /** Database Charset to use in creating database tables. */ define(‘DB_CHARSET’, ‘utf8′); /** The Database Collate type. Don’t change this if in doubt. */ define(‘DB_COLLATE’, ”);
Now you have to give authentication keys for security. These security keys are protecting your wordpress from hackers.
You will see the following in wp-config file.
define(‘AUTH_KEY’, ‘put your unique phrase here’); define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’); define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’); define(‘NONCE_KEY’, ‘put your unique phrase here’);
- Then go to key generator: https://api.wordpress.org/secret-key/1.1/
- It will generate random keys for you. Just copy and replace them with the above. I have changed them as follows.
- Enter in Security Keys for WordPress
- Now you have successfully configured wp-config file.
5. Upload the contents of unzipped wordpress folder to your server via FTP.
Now we are going to upload the contents of WordPress folder to our server. You can use FTP software or cPanel File manager. I tested the both ways. CPanel File manager was very speed when compared to FTP. But here I am explaining FTP method. I am using Filezilla FTP which is an add-on for Firefox browser. You can use this or any other FTP client like FileZilla.
You should upload contents of the unzipped folder to your root (public_html) not the folder(directory). You should open the WordPress unzipped folder and upload the contents one by one or select all click upload. For more help, visit our videos. It helps you more than enough without messing anything.
6. Run the Install script:
Type the url /wp-admin /install.php. Here replace mydomainname.co.cc with your blog domain name. You will be asked to enter blog details like blog title, tagline, email etc. Once you finished all the details, you will be provided username as admin and temporary password for WordPress.
Now you can login to your WordPress in www.mydomainname.co.cc/wp-admin . Replace your domain name with mydomainname.co.cc.