WordPress Installation Tutorial

If you are planning on installing WordPress on your website, please read through the WordPress Installation instructions, as well as these instructions that are specific to our cloud hosting setup:

  1. Download the latest version of WordPress
  2. Create a MySQL database for your WordPress install:
    1. Log into the control panel for your hosting account.
    2. Select your domain name.
    3. Click on the Features tab.
    4. Under the Databases section, click Add.
    5. Enter a desired Database Name into the form field and click Continue.
    6. Enter a desired Database Username into the form field, enter a password for that username twice, and click Finish.
    7. If successful, you will receive a message “Database creation pending.”. It may take a few minutes for this newly created database to fully provision in the cloud.

    NOTE: You will notice that a numerical prefix and underscore will be added to the beginning of your database name and username. For example, if you named your database ‘dbcloud’, it might look like this: 402464_dbcloud. This is needed cluster node information and is the full database name and/or username to use in any database config file reference.

  3. Configure WordPress with your MySQL database details:
    1. Unzip/extract the WordPress download. There will be one folder named “wordpress“. Within this folder, locate the file named “wp-config-sample.php“, and open it with a text editor of your choice (TextEdit, Notepad, etc.).
    2. Look for this section of php code:<?php
      // ** MySQL settings ** //
      define('DB_NAME', 'database_name_here'); // The name of the database
      define('DB_USER', 'username_here'); // Your MySQL username
      define('DB_PASSWORD', 'password_here'); // ...and password
      define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    3. Enter the database values you created above in step 2 into the corresponding areas. For the DB_HOST, you will need to replace localhost with the correct database hostname value. Here are instructions on how to locate your database hostname. It will look similar to this (with your own values of course) when you are done:<?php
      // ** MySQL settings ** //
      define('DB_NAME', '402464_some_db'); // The name of the database
      define('DB_USER', '402464_db_user'); // Your MySQL username
      define('DB_PASSWORD', 'vf3wng9t'); // ...and password
      define('DB_HOST', 'mysqlXX-XX.wc1.stabletransit.com'); // This value is located in control panel and is the value corresponding to 'Hostname'
    4. Save and rename this file as “wp-config.php”.
  4. Upload all of the WordPress core files to your website’s public directory:
      1. Using an FTP program, upload the the entire contents of the “wordpress” folder (including the newly created wp-config.php) to your remote directory: /www.example.com/web/content/ (replace “example.com” with your actual domain name)

    NOTE: Uploading the “wordpress” container folder will create a subdirectory on your domain name (yourdomain.com/wordpress). This is where your blog will “live” on the internet if you run the installation from here. To avoid having to follow some advanced instructions to move WordPress back to your root domain (domain.com/), “Select all” files contained in the “wordpress” folder and upload them directly into your public directory.

    1. Using a web browser, run the installation script and enter the required information. Relative to where you uploaded the files, the URL will include /wp-admin/install.php at the end. If you haven’t yet changed your domain name servers to point to the cloud hosting, you will need to use your Testing URL.

     

  5. If you’ve installed WordPress at the root of your domain (for example domain.com), make sure to remove or rename the default index.html file so that the index.php file for WordPress can resolve by default.