Jump to content

Recommended Posts

Dear Forum extreme people:

 

Am using Windows 7, Apache2.2.17, PHP5.2.17, MySQL5.1.65. Am getting the original emsg when installing PHP and Apache2.2.17 a year ago, but clueless again as to why.... The module, "php5apache2.dll," exists in all possible locations:

 

httpd.exe: Syntax error on line 496 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP/php5apache2.dll into server: The specified module could not be found.

 

Here are the offensive lines at the bottom of httpd.conf:

 

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
#configure the path to php.ini
PHPIniDir "C:/php/"

 

Have googled the above emsg without any answers working. And, perhaps someone with experience could recommend a needed PHP version to work, besides the PHP5.3.8 that used to work on my system before having to reinstall Windows 7 on this server?

 

Thanks,

Yshua

Dear PFMaBiSmAd:

 

I goofed! You are quite right. However, that still failed to fix the madness. Same error, only with

 

httpd.exe: Syntax error on line 496 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/PHP/php5apache2_2.dll into server: The specified module could not be found.

 

Now it simply returns your correction to me. Just in case, here is the new capitalized PHP and C:/ version of last four lines:

 

LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
#configure the path to php.ini
PHPIniDir "C:/PHP/"

 

Thanks again!

Dear forum people:

 

Success at last (over a month)! Broke it down that the PHP file might need to be the original PHP5.3.8, and found a PHP directory lying around and it restarted perfectly. Thanks, PFMaBiSmAd, because that little typo could have cost me a lot! Well, something for the detail conscious....

 

Thanks everyone,

Yshua

  • 11 months later...

Hi Yshua,

 

I hope you're still here, it's been a year since you posted.

 

Could you elaborate on your solution to the problem?  I'm getting the same error; a fresh install of Apache and PHP,and the file that it says could not be found is definitely there.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.