How to: Install WordPress on a GoGrid Server in less than 10 minutes

June 30th, 2008 by - 26,039 views

wordpresslogo WordPress is the most popular blogging content management system software in use today with over 4 million downloads in its existence. It can be seen on hundreds of thousands of websites, most notably on,, and the Millions of readers view WordPress -based websites every day and get near real-time RSS feeds from their favorite authors. Blogging is a great way to promote your company (hence your visit here), review your current obsessions or talk about your hobbies in a community-oriented fashion.

That being said, this article will show you how to do a quick WordPress installation in less than 10 minutes on GoGrid. You will be up and running, ready to post content about what you ate for lunch or the newest tech gadget you saw on the streets, all with the clean aesthetics and easy, feature-rich navigation of a WordPress website.

To start, simply deploy a GoGrid server through the customer portal. In this example, we’ll use a CentOS 4.5-based LAMP stack since it has all the software packages needed for a WordPress installation already installed.

  1. Click on the “+” button once you’ve logged in, then select “Web/App Server”. Enter a friendly name for your server, such as “WordPress” or the domain name you’ll use once your server is configured. Enter a quick description of the server and select an IP address (our new IP suggest function will suggest one automatically for you).
  2. Next, select the operating system to run your WordPress installation on. WordPress can run on either Windows or Linux machines, but in this example we’ll use a Linux-based CentOS 4.5 server image.
  3. Select the amount of RAM dedicated to your server. Depending on the amount of traffic you’re expecting, you may want to allocate a good amount of RAM to your server. I’m choosing to go with a 2GB server.
  4. Select the server image you want to deploy. In this case, I’ll be using a LAMP stack. (For Windows servers, you may want to select a Windows 2003-based operating systems with IIS and MSSQL Express installed on the server image.)
  5. Click on “Save” and your server will be deployed within a matter of minutes.
  6. Once your server’s light turns green, click on the new WordPress server and then select the “Passwords” button at the left. This will take you to the login information for your server.

Now that a server has been deployed, you can go ahead and connect to it remotely via SSH. If you work on a Windows machine, you can download the PuTTY client to connect to a Linux Server. If you’re on a Mac or a Linux machine, you can open your terminal and SSH directly to the IP address of the new GoGrid server.

  1. SSH to the new server and log in using the username and password credentials located on the “Passwords” page in the GoGrid portal. In my examples, I will use the IP address Replace this IP address throughout this document with the IP of the server you just deployed:

    Enter your username and password to log in.

  2. Navigate to the folder where you want the WordPress installation to live. In a Linux server, this is usually in /var/www/html.
    cd /var/www/html
  3. Now you need to download the WordPress package from
  4. Once the package has finished installing, you’ll need to unzip it:
    tar –xzf latest.tar.gz
  5. A new directory called “WordPress” should appear when you enter the command “ls” to show the contents of your current directory. Now we’ll need to create the MySQL database associated with WordPress. Enter the MySQL prompt and create a new database and user for the WordPress installation. Note that you should create more securely named username, password and databases than I have below. These are just examples:
    mysql -u wordpressadmin -p
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 21
    Server version: 5.0.58 Source distribution
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    mysql> CREATE DATABASE wordpress;
    Query OK, 1 row affected (0.00 sec)
    mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "wordpressadmin"@"localhost"
     -> IDENTIFIED BY "abcd1234";
    Query OK, 0 rows affected (0.00 sec)
    Query OK, 0 rows affected (0.01 sec)
    mysql> EXIT
  6. In the wordpress directory, change the name of the file wp-config-sample.php to wp-config.php:
    mv wp-config-sample.php wp-config.php
  7. Open the wp-config.php file in a text editor and enter your database details. I’ll be using vi for this, but you may use something different:
    vi wp-config.php

    Under the ** MySQL settings ** section, enter in the appropriate information regarding your database that you just created. Again, these are examples taken from the steps above:

    // ** MySQL settings ** //
    define('DB_NAME', 'wordpress'); // The name of the database
    define('DB_USER', 'wordpressadmin'); // Your MySQL username
    define('DB_PASSWORD', 'abcd1234'); // ...and password
    define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');
  8. Move all of the WordPress files into the desired location on the server. Currently, they are one level below the root domain directory, so we’ll have to move all of the files up one level. If you wish to keep them where they are, you will have to access your WordPress installation via the web at your IP address/ wordpress, i.e. You can move the files to wherever you see fit dependent on where you want them to appear on your website. In this example, the WordPress files will be moved to the root domain directory, /var/www/html:
    cd ..
    mv wordpress/* /var/www/html
  9. Run the WordPress installation script by accessing the file wp-admin/install.php in a web browser. This will be the IP address/wp-admin/install.php or your hostname/wp-admin/install.php. If you installed WordPress in the root directory as I did above, go to, but replace my IP address with yours. If you installed WordPress in a sub-directory, go that URL in your browser. You should see the following login prompt page:wordpress-install

Once your WordPress installation is configured properly, you can join the ranks of the thousands of bloggers out there in the blogosphere. Remember to set up your RSS feeds so that people can get notified when you update your site. The only problem you should have now is deciding what to post. What is going to make your blog stand out in the crowd? Hmm, sounds like a good topic for a blog entry…

7 Responses to “How to: Install WordPress on a GoGrid Server in less than 10 minutes”

  1. Hello,

    I have installed the server in my trial GoGrid account and unfortunately, I get the following error message:

    Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    Further investigation indicates by default PHP has been with the mysqli instead of the mysql module. I tried to convert these references to mysql to mysqli using the tool provided by MySQL but with no luck.

    Any suggestions?


  2. Bryan Levine says:


    This error can be resolved by ensuring that and are uncommented in your php.ini file. To edit this, go to /etc and edit the php.ini file to remove the # mark in front of the two lines mentioning the extensions above. Restart Apache and MySQL. The error should then be resolved.

    Thank you,

    Bryan Levine

  3. gomundo says:

    Trying to learn the linux stuff…followed instructions, so far have installed wordpress and drupal. I have the same problem in both installs, when I browse to directory rather than rendering the default page in the directory the browser shows the directory structure. Also what is the best way to connect to a linux gui from a windows box…thanks in advance

  4. Bryan Levine says:

    @ gomundo,

    Append the URL with install.php and it will bring up the installation screen. For example, http://208.113.X.XX/install.php. That should solve your problem.


    Bryan Levine

  5. gomundo says:

    Thanks bryan I did that on the wordpress and drupal installs to finish the installs, but even after successful installs still the default is to browse directory rather than load a default page in the browser, could this be an .htaccess file issue, i do not see one in the www directory or the wp or dru directories….tried to add but I really suck at this, im definately a gui kinda guy….

  6. Bryan Levine says:


    You have to set Apache to recognize .php extension files in your httpd.conf file. Navigate to /etc/httpd/conf and edit the file httpd.conf with the command vi httpd.conf.

    Locate the section looks like the following:

    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    DirectoryIndex index.html
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.

    Modify the line DirectoryIndex index.html by adding index.php in front of index.html so that it looks like this:

    DirectoryIndex index.php index.html

    Save and exit the file. Now you have to restart Apache, so enter the command service httpd restart. That should fix the problem.


  7. Jim Hunt says:

    Just had a WordPress problem myself with Centos LAMP. Support suggested:

    The simple steps to the problems with a missing MYSQL connection module in PHP is as follows:

    1)Perform a ‘yum update’
    2)Perform a ‘yum install php-mysql’
    3)Restart HTTPD

    That worked for me.

    N.B. the config files mentioned above are now split into assorted new locations!


Leave a reply