Installing WordPress

install WordPressLet’s move on to install WordPress. First we need to setup the mySQL database and user name. This will be the WordPress database that stores all our WordPress contents. WordPress requires the login information before it can read the mySQL database to retrieve the information to display on the site. Once we have created our database, we just need to upload wordpress installation files and install it.

Creating New Database and User

  1. Login to your control panel. It is normally located at https://yourdomain.com/cpanel
  2. Look for MySQL Databases and click it
  3. Under “Create New Database”, enter a name for you database and click “Create Database button”
    cpanel
  4. Under “MySQL Users”, enter a unique username and password and click “Create User”
  5. At the bottom shows “Add User To Database”. Select your new user and database and click “Add”
  6. It will direct you to “Manage User Privileges”, tick “All Privileges” and click “Make Changes”
  7. Write down your database name, username and password. We will need it in the next step

Installing WordPress

  1. Download and unzip the latest WordPress package
  2. In you WordPress files your will see a file named wp-config-sample.php. Rename it to wp-config.php.
  3. Open it up with a text editor and search for the following code and enter your database name, user name and database password.
    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database */
    define(‘DB_NAME’, ‘putyourdbnamehere‘);
    /** MySQL database username */
    define(‘DB_USER’, ‘usernamehere‘);
    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘yourpasswordhere‘);
    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost‘);
  4. Next look for the following code and go to WordPress secret key and replace the code and save it.
    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’);
  5. Login to your FTP and upload this file to the public_html folder
    wordpress upload
  6. Now go to https://www.yourdomain.com/wp-admin/install.php
  7. You should see the welcome page. Just enter the user name you want password and follow the instructions.
  8. That’s it. Your WordPress installation is ready

If you receive an error establishing connection with database, double check if you have successfully created your database and user name.

Leave a Comment

Scroll to Top