Customer Login



Recover Password

WorkOrder TS Support Database

 

Bookmark: Root \ Installation Guides \ Part I - How to install Apache2.4, PHP5.3 and MySQL5 on Windows

Part I - How to install Apache2.4, PHP5.3 and MySQL5 on Windows


Last Updated: 2012-05-29
This is Part I of a three part guide on how to install Apache2, PHP 5 and MySQL on a Windows computer or server.
Part I covers the Apache 2.4 Web Server
Part II covers the MySQL Database Server
Part III covers the PHP 5.3 installation

This guide is a generic guide on how to install Apache 2.4, PHP5.3 and MySQL5.5 on a MS Windows computer. This guide is an update to the previously published guide on how to install Apache 2.0/2.2. The old guide is still available here: Apache 2.2 setup guide

Let's get started!
First, download the latest version of Apache, PHP5 and MySQL.
The most recent editions available today are


httpd-2.4.2-win32-ssl_0.9.8v.zip => http://www.apachelounge.com/download/
php-5.3.13-Win32-VC9-x86.zip (VC9 x86 Thread Safe ) => http://windows.php.net/download/
mysql-5.5.24-win32.msi => http://www.mysql.com/downloads/mysql/

PART I - Install Apache 2.4 on Windows

You must first install (not needed for Windows 7+) the Visual C++ 2010 Redistributable Package.
Download and Install, if you have not installed it already, from: http://www.microsoft.com/download/en/details.aspx?id=8328

Extract the files inside the Apache Zip archive to c:\apache24 (note NOT c:\apache24\Apache24)

Extracting apache into another folder means that you will have to adjust a few config options.
Don't do this unless you know what you are doing!
Open httpd.conf and adjust ServerRoot, Documenroot, Directories, ScriptAlias to your custom path. Don't forget the "extra" folder if you need the option. Do NOT place the apache folder into "Program Files" or "Program Files (x86)"!

Next add the apache folder to your Windows PATH variable. Open Control Panel => System => Advanced system settings => Advanced => Environment Variables...
Under System variables, scroll down to Path and append the following to Variable value ;c:\apache24\bin\

Now it is time to see if apache will start. Open a comamnd prompt Start => Run => CMD
Try to start the server with httpd.exe and you should see a message like this:
AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::3064:1dd0:3e60:9fb7. Set the 'ServerName' directive globally to suppress this message

So far so good, use CTRL+C to terminate the server.

Now run httpd.exe -k install to install Apache as a service (open a command prompt with Administrative rights under Windows Vista and above). Now open Start => Run => services.msc and look for Apache2.4. Try to start it, it should work.

Congratulations, you have just installed Apache onto your Windows system.


That's it for Part I of this guide, your Apache webserver is now up and running. Please click here for Part II

This guide has been written by WorkOrder TS.com to provide a simple step by step guide on how to get Apache 2.4, MySQL 5 and PHP 5.3 to talk to each other. You did not write it so please don't copy the content!
Feel free to link to it using the tiny URL: http://www.workorderts.com/tiny.php?id=21

 

Title: Two apache server in a system
Posted By: Sowmya On: 2013-02-08 07:45
Running: Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0
In my local system Apache 2.2 is installed. I want to install apache 2.4 without uninstalling the exist Apache 2.2.
I tried but its giving error like MSVCR100.dll not found....
Can u tell me is it possible to install Apache2.4...
If yes explain me the steps....

EDIT By Admin:
This sounds like you skipped an important step. Please install the Visual C++ 2010 Redistributable Package from http://www.microsoft.com/download/en/details.aspx?id=8328

 

Add Your Comment:

Note: All posts require administrator approval. Please allow 24 hours for message approval.

Name:
E-Mail:
Title
Plain text only, less then 65 000 characters.

Which one of the following 4 words is a feeling? Words: hate candle nut window

Please answer the question above and type the answer into the text box below.