December 18th, 2006 at 3:37 pm (Fast PHP Tutorial Series)
We are proceeding well as I am getting your feedback on the previous articles of Fast PHP Tutorial Series and I am happy to hear that they are working and you are learning something…
Till now we have learned “How to Install PHP On Windows” and “How to install PHP on Linux”. Lets start our today’s article which is about installing Apache on Windows so that it can support your PHP scripts on your PC.
First of all download apache,Win32 Binary (MSI Installer), from http://httpd.apache.org/download.cgi
You can choose the mirror according to your location to get fast downloading speed.
when you will run the downloaded installation file make sure to put right settings info may be as follow,
Network Domain: localhost
Server Name: localhost
Admin Email: firstname.lastname@example.org
You may get Anti-Virus or Windows XP SP2 security alert about running apache as service. Allow apache to run as service on your windows.
You must run apache to execute PHP scripts and you can stop it optionally when you are not working with PHP and don’t need apache to waste your system resources.
After apache installation you will be able to see Apache Status Icon in your System Tray; sorry… what did you say? what is system tray? … well, the area where your system displays click (time) or display msn, yahoo and icq etc icons is called system tray.
Apache shows a green kinda icon if it is running and red icon if stopped. you can take mouse on the icon to see the status on mouse-tip. You can also start and stop apache from Start Menu as Apache have made a menu from where you can also run Test Configuration to check your apache installation. If you click on Test Configuration and a dos window appears and then disappears it means installation is working otherwise it will display informative error.
Now to test your Apache Installation on Windows open a browser window and type
Now you have to tell Apache where to pick your website pages, for this open the http.conf (apache configuration file) with notepad and search for DocumentRoot and put your website files exact location which may be,
now search for
Remember whenever you make changes to Apache configuration file you need to restart apache to make the changes take effects. So, what are you waiting for… restart and get ready to dive deep into the PHP-Sea as your system is ready by now to start learning PHP.