Joyent

Knowledge Base

8.4. Installing WordPress

  1. The first thing you need to do is download the latest version of WordPress here and unzip/untar it. Once you've unzipped it you should have a directory called wordpress.
  2. Now you need to create a MySQL database for your WordPress installation (see Creating a MySQL database ).
  3. Based on those instructions, create a new database.
  4. Now you need to edit the wp-config-sample.php file found in the wordpress directory you just unzipped/untarred and then rename it to wp-config.php. The configuration file should originally look something like this:

    
        define('DB_NAME', 'yourdatabasename');
        define('DB_USER', 'yourusername'); 
        define('DB_PASSWORD', 'password'); 
        define('DB_HOST', 'localhost');
    
  5. Open the wp-config-sample.php in your favourite text editor and replace yourdatabasename with the name of the database you created earlier, yourusername with your TextDrive user name, and password with your TextDrive account password.

    Note: If you're uncomfortable using your main TextDrive account user name and password, you can create a new MySQL-only user on your account and use that user name and password instead (see Adding MySQL Users)

  6. Once you've made the necessary changes, save the wp-config-sample.php file as wp-config.php.
  7. Upload all the WordPress files within the wordpress directory, including your newly renamed configuration file, to your ~/public or ~/public_html directory and then go to http://yourdomain.tld/wp-admin/install.php to begin the installation.
  8. Once things are setup, make a note of the password WordPress gives you and go to http://yourdomain.tld/wp-login.php and login with the username admin and the password you received from the previous page.

And that's it, you've just installed WordPress at TextDrive!