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 Ebay.com, CNN.com, People.com and the NewYorkTimes.com. 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 http://my.gogrid.com 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.
- 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).
- 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.
- 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.
- 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.)
- Click on “Save” and your server will be deployed within a matter of minutes.
- 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.
- 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 126.96.36.199. Replace this IP address throughout this document with the IP of the server you just deployed:
Enter your username and password to log in.
- Navigate to the folder where you want the WordPress installation to live. In a Linux server, this is usually in /var/www/html.
- Now you need to download the WordPress package from wordpress.org:
- Once the package has finished installing, you’ll need to unzip it:
tar –xzf latest.tar.gz
- 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
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)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.01 sec)
- 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
- 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:
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
- 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. 188.8.131.52/wordpress. 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:
mv wordpress/* /var/www/html
- 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 http://184.108.40.206/wp-admin/install.php, 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:
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…