• 0

Configuring Apache to work with php


Question

I have Apache installed and it works however when configuring it to work with php it tells me that it cannot find the files needed. Here is what I typed into the config for Apache.

LoadModule php5_module "C:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

And the locations are accurate for the dll file and the php directory yet it still tells me that it cannot locate it. I have also made sure to add the C:/php to the environmental variables in windows under the patch section.

am I doing something wrong? Is this an outdated method to do this as I am using the most current install files?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Which version of Apache are you using?

php5apache2.dll which you are trying to use is for use with Apache 2.0.x.

If you are using Apache 2.2.x you should be using php5apache2_2.dll

Link to comment
Share on other sites

  • 0

Have you done this:

Go to the c:\php folder and make a copy of the file "php.ini-recommended". Name the new file "php.ini". That is, you should now have a file "c:\php\php.ini", identical in content with "c:\php\php.ini-recommended".

Source

Link to comment
Share on other sites

  • 0

Which version of Apache are you using?

php5apache2.dll which you are trying to use is for use with Apache 2.0.x.

If you are using Apache 2.2.x you should be using php5apache2_2.dll

This was the issue thank you very much!

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.