How to Install Word Press In Your Domain Or Sub Domain. In my today’s tutorials, I’ll explain with details how to install WordPress in your main domain or subdomain. The procedure is same both for main and subdomain. So I’ll show the path how to create for the same.
Step 1: Download WordPress
Download the WordPress to your local computer.
Link – http://wordpress.org/download/.
Unzip the downloaded file to a folder on your local computer.
Step 2: Upload WordPress to Hosting Account
There are two available options for uploading WordPress to a hosting account.
- Upload via FTP
- Upload via File Manager
Step 3: Create MySQL Database and User
In WordPress, it stores its information in a database. Therefore, we need to create a database.
What we’ll do, we need to go to Cpanel.
- Log into cPanel.
- In the Databases section, click the MySQL Database Wizard icon.
- For Step 1: Create A Database, enter the database name and click Next Step.
- For Step 2: Create Database Users, enter the database user name and password and click Create User.
- For Step 3: Add User to the Database, click the All Privileges checkbox and click Next Step.
- For Step 4: Do complete the task, make note of the database name, username and password, as you will need them for Step 4.
Step 4: Configure wp-config.php
Generally, the wp-config-sample.php file contains the database information and tells the WordPress application which database to pull information from. This step must be completed to make sure the correct database information is associated with the WordPress installation.
The wp-config-sample.php file can be found in File Manager in the folder where WordPress is installed. To modify the file we need to go in Cpanel.
- Log into cPanel.
- In the Files section, click the File Manager
- In the pop-up box, select Web Root and check the box for Show Hidden Files (dotfiles), then click Go.
- From the left navigation menu in File Manager, click public_html to expand the folder.
- Click the folder containing the WordPress installation.
- On the right side of the File Manager screen, locate the wp-config-sample.php file.
- Right click on the file, select Rename and change the name of the file to wp-config.php. Click the Rename File button.
- Right-click on the wp-config.php file and select Code Edit. When the file opens, look for the following information:
/** MySQL database username */
/** MySQL database password */
- Replace database_name_here with the name of the database you created (above in Step 3: Create MySQL Database and User See Below).
- Replace username_here with the username of the database you created.
- Replace password_here with the password of the database that you created.
When done editing, click the Save Changes button, then close the file.
Step 5: Run the Installation
Open a new browser window and go to the installation page to run the installation script. Just type in your browser http://yourdomain.com/wp-admin/install.php or simply type yourdomain.com on the browser, it automatically redirects the installation page.
You should now see a welcome page that says “Welcome to the famous five minute WordPress installation process!”
Step 6: Complete the Installation
Please provide the following information. Don’t worry you can always change these settings later.
- Site Title:
- Password (needs to be entered twice)
- Your Email address (login information will be sent to this email address)
Privacy – Allow search engine to index the website (we need to tick it)
Click Install Now, Finally you should get a message like Success. WordPress has been installed.