Manual Wordpress Install
In my previous post I talked about how cool XAMPP is and that I was able to quickly install it and then install Wordpress on my local machine. I didn’t give you any details on how I did that though.
Last night I decided to add a blog to one of my existing sites that I have hosted at ReliableSites.net. So far I’m very happy with them. I have several .NET sites hosted there, but they also support PHP and MySQL. They don’t provide an automated install of Wordpress, which as it turns out is no big deal.
The process I followed to install Wordpress on my local XAMPP environment was the same as what I did last night to install Wordpress on my ReliableSites hosted site. And as you will see, it was pretty easy.
- You need to manually create a new MySQL database. Connect to MySQL. This is typically done using "phpMyAdmin" which is accessible from XAMPP or your hosting account control panel. Once connected to your MySQL server, enter in the name of a new database (e.g., "wordpress" or "wp-blog" or..you get the idea), select "utf8_unicode_ci" for you collation, and click the Create button. This will create a new, empty database.
- Unzip the Wordpress download file into a directory on your local machine. You can get the download file from Wordpress.org. You need to unzip is on your local machine because you need to modify 1 file prior to "installing".
- In the directory that you unzipped the Wordpress files into you will find a file named "wp-config-sample.php". First thing you should do is copy (don’t just rename!) the file to "wp-config.php". Then you can open up the file using Notepad or any text editor (don’t be afraid if you don’t know PHP, this is a simple file!). At the top of the file you will see lines like:
define(’DB_NAME’, ‘putyourdbnamehere’); // The name of the database
define(’DB_USER’, ‘usernamehere’); // Your MySQL username
define(’DB_PASSWORD’, ‘yourpasswordhere’); // …and password
These are the only 3 lines that you need to change. You need to specify the name of your MySQL database, the user name used to connect to it, and the password for it. That is all, move to next step. - Now you need to copy the entire directory to its final destination. For example, if you are using XAMPP you will need to copy the directory to the \xampplite\htdocs directory (so, if you’re wordpress directory is called "myblog" then you copy that and have \xampplite\htdocs\myblog). If you are using ReliableSites, for example, you need to use your FTP program and copy the folder and files to a folder on your web site. You can copy into the root folder if you want your blog to be the root of your site.
- Okay, almost done. Open up your browser and navigate to the url with the wordpress files you just uploaded. You will see a page the welcomes you to Wordpress and asks you to finish the install. Click and it will create all of the necessary database tables, create an admin user account, and generate a random admin password.
- Now you have Wordpress installed and can go about configuring it with plugins, themes, and all of the normal stuff.
Now, that wasn’t too difficult was it? I realize I may not have gone into as much detail as some may need, but it really isn’t too hard.