Installing WordPress

Share your find
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Installing WordPress

I wanted to install wordpress in a sub directory (/blog) of my site. I recommend installing it into a sub directory and using htaccess files to control the redirect to your blog, which we will cover later. This approach to the installation will give you the flexibility to add other components to your site and save the front page for organizing your components.

Setup Your Database

Create a database with your favorite tool. You can find your database management tools in CPanel or Plesk. You just need a database with a user that has all permissions. Jot down the database name, database user name, & password, you will need this information later for the wordpress installation config file.

Installing WordPress from the command line

Connect to your server with a command line tool like PuTTY

PuTTY is a free implementation of Telnet and SSH for Win32 and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham.

Here are the command line steps

These steps are executed by super user (su) in your site’s root directory

  1. wget http://wordpress.org/latest.tar.gz
  2. tar -xzvf latest.tar.gz
  3. rm latest.tar.gz
  4. mv wordpress blog
  5. chgrp {root group} blog -R
  6. chown -R {root user} blog
  7. cd blog
  8. mv wp-config-sample.php wp-config.php

Command line steps explained

Copy the latest, compressed version of WordPress to your site.
1. wget http://wordpress.org/latest.tar.gz
Decompress the file.
2. tar -xzvf latest.tar.gz
Delete the compressed file.
3. rm latest.tar.gz
Rename the wordpress directory to blog.
4. mv wordpress blog
Reassign user group to your new directory. This should be the same group as your root directory.
5. chgrp {root group} blog -R
Reassign user to your new directory. This should be the same user as your root directory. Updating user & group will allow you to use your common editing tools like Dreamweaver to manage these files.
6. chown -R {root user} blog
Navigate into your new directory.
7. cd blog
Rename the wordpress config file.
8. mv wp-config-sample.php wp-config.php

You’re almost done!

Edit wp-config.php to include your database information, then point your browser to the blog directory on your site. You should see the WordPress Installation welcome screen.