Jump to content

PHP5, Apache 2.2 problems


Recommended Posts

I desperately need some help; I have searched in these posts and all over the internet for a solution to my problem, which I have not been able to find. I have installed the WAMP combo several times in the past and this is the first time I have had a problem.

 

I am running Vista Home Premium 64 bit and trying to install PHP 5.2.6 on Apache 2.2.1. Apache installed fine and can be run; however, when I add the LoadModule and other PHP commands to the Apache hppd.conf file, I get a fail-to-start error along with:

 

"The Apache service named reported the following error:

>>> httpd.exe: Syntax error on line 128 of C:/apache64/conf/httpd.conf: Cannot load C:/php/php5apache2_2.dll into server: The Apache service named is not a valid Win32 application."

 

Apache is in c:/apache64; PHP is in c:/php. The following is what I have done so far to no avail.

 

1) Added to/changed in hppd.conf:

ServerRoot "c:/apache64"

DocumentRoot "c:/apache64/htdocs"

LoadModule php5_module "c:/php/php5apache2_2.dll"

PHPIniDir "c:/php"

AddType application/x-httpd-php .php

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

 

2) Changed where necessary the directory to "c:/php"

3) Added c:\php to PATH

 

I can post the entire config file if necessary (without the comments). It's been five days now and I'm about to give up. If anyone can offer suggestions as to what I'm doing wrong I would be very grateful.

Link to comment
Share on other sites

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.