When I started experimenting with WordPress, this was there in my mind as a doubt. I found loads of queries regarding the same and there are less visibility to the solutions. So here I just thought of explaining How I managed to get the WordPress Installed in my Local Machine and testing it as same as it hosted.
Requirements for WordPress Installation:
For running WordPress you have to install PHP – version 4.2 or greater – and MySQL -version 3.23.23 or greater – running in your PC. Even though there is no mandatory, but preferably Apache is the best option or any server that supports PHP and MySQL will do.
How to Configure your PC for WordPress?
Xampp is the best option – as I feel – to get these ready in your PC. You can download it and save the EXE file to your C:\. Execute the EXE file and get the ‘xampp’ folder in your C:\. Open the Xampp folder, Click “setup_xampp.bat”, this will check for the system compatibility. Once you have the success message, you can click “xampp-control.exe”, this will open a pop-up window and from there you have to choose the options for Starting Apache and MySQL.
Open a browser and go to http://localhost/xampp/ and Click on ‘phpmyadmin’. In the MySQL section create a new database named ‘wordpress’.
Now you have to copy the WordPress folder into the /htdocs/ directory of xampp. Then open the wordpress folder and open the file wp-config.php. In that rewrite the code with the following:
Then Install the WordPress as per the instruction given by them.
A Word from the Author:
Apache listens port 80 by default and you have to make sure that is free and not occupied by any of the other services. If you have IIS and all installed, probably port 80 will be engaged, in that case open ‘xampplite\apache\conf\httpd.conf’ and find this line: Listen 80. Change that number to another, this should work properly.
It’s a nice experience to learn WordPress and with the Local PC supporting it, you got your testing sever for free. Whatever I have to do, first I will work on my testing server locally and once I made it work there, just upload the same to Live Server. This allows me to experiment a lot and keep my Live server Bugs free.