In my previous post, you learned how to prepare your computer to install WordPress.
I told you about Apache the web server, PHP the server side web programming language and MySql the database server to hold and offer data for your websites. And finally, recommended XAMPP for easy installation and configuration of those server components so that your local PC is able to host WordPress files.
Similarly, in post #3 you saw some strong and popular self-hosted blogging platforms. I asked you to download the latest version of WordPress. If you have not got that file yet, please go through Popular Self-Hosted Blogging Platforms and download WordPress.
Today, in this post, we’ll see how to install WordPress and configure its settings so that you can create your first blog.
Install WordPress on Local Computer
OK, then, let’s start installing WordPress.
Are Apache and MySql Running?
Before proceeding, let’s check if Apache and MySql are running in your system. These are the two software that will make your local PC a web server.
To make sure they are working properly, right click the XAMPP icon in system tray and make sure both Apache and MySql are green.
Check The Status in Browser
Open your browser and enter http://localhost/xampp/status.php. You should see the page something like below:
This page displays the information about what’s running and working and what isn’t working.
To check if MySql is working fine, you can visit phpMyAdmin – a tool to handle your MySql database. We will use it to create new databases, new database users, view and configure privileges and so on.
WordPress runs with its two major aspects – the code files and the database. You’ve already downloaded the WordPress files and now lets create a database that WordPress will use to create tables and use it to store your posts and settings.
To create a new database, we will use PhpMyAdmin tool in XAMPP. Click on PhpMyAdmin link under Tools in left panel of XAMPP home screen or visit http://localhost/phpmyadmin/.
The left panel of phpMyAdmin lists the existing databases. Right Panel provides options to work with databases. Click on Databases menu on the top of right panel.
Create Database User
After you have database, you need to create a user and specify privileges for that user.
Open the recently created database and go to Privileges tab. You’ll get a list of users having privileges to that database. Click on Add User link to add new user to the database.
This will bring up the New User form. Fill up the form to create new user.
Scroll down to configure user privileges while creating new user:
Finally click on Add User button.
Note down the database name, username and password, we’ll need it immediately while installing WordPress.
That’s great! We now have a database ready for our blog. WordPress installer will create the required tables inside it.
You’ve got the zip file of WordPress that you downloaded. Now its time to use it!
- Move the downloaded file (wordpress-3.5.tar.gz in my case) to the htdocs folder in your XAMPP installation (C:xampphtdocs in my case)
- Extract the zip file in same folder. You’ll get new ‘wordpress’ folder inside current location.
- Rename the ‘wordpress’ folder to the name of your blog (bivori in my case)
- Now, you are ready to install WordPress.
- Open your browser and access your blog folder
- You may be prompted to create a new configuration file. Click on ‘Create Configuration File’ button.
This is the first screen, a reminder in deed. Click on Let’s go!
Fill up the database name, username and password that you had noted down while creating new database. Database host is your local computer so you can enter ‘localhost’ or ‘127.0.0.1’ as Database Host.
You can leave the default wp_ as Table Prefix, however, if you want to use same database for multiple blogs, you can specify different table prefix for each blogs.
Click on Submit to proceed.
If everything is fine, that means if the database credentials were correct and your MySql is running fine, you’ll be greeted with above page. Click on Run the install button.
You can specify Site Title, Username and Password in Welcome screen. This username and password is different than you noted down while creating database. This username and password will be used every time to log in to WordPress dashboard.
When everything is Okay, click on Install WordPress button.
Congratulations! WordPress is installed and your new blog is ready.
Click on Log In button to access http://localhost/bivori/wp-admin. Supply the WordPress username and password.
Enter http://localhost/bivori to see the frontend of your blog:
So, now, here’s your blog running in your own computer. I will talk about configuring WordPress settings in my next post.
Subscribe to How to Blog series
If you find this post useful to learn blogging, I’m sure you’ll like to subscribe to my reader’s list. Please enter you name and email address in form below to get benefits: