I installed Windows Server 2008 R2 Enterprise 64 as a virtual machine with Virtual Box on Windows 7 x64.

  1. Installed Apache and can start and stop that service and It works!

  2. Installed php5 into a folder c:/PHP/

  3. Copied the php5ts.dll file into the Apache\bin folder

  4. I configged the pathvariable and added ;c:\PHP at the end

  5. I added a system variable called PHPRC with value c:\PHP

  6. I configged the httpd.conf file in Apache../conf/ with these lines:

these lines under section AddType:

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

PHPIniDir "C:/PHP" #if i remove this and the one below Apache starts

This line under section LoadModule:

LoadModule php5_module "C:/PHP/php5apache2_2.dll" #if i remove this Apache starts
link|improve this question

56% accept rate
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.