logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: httpd.exe: Syntax error
Author
drgreen



Joined: 20 Sep 2007
Posts: 2

PostPosted: Thu 20 Sep '07 10:19    Post subject: httpd.exe: Syntax error Reply with quote

After some difficulty, I have managed to install apache 2.2.4 on my vista (yes i know!) laptop. I want to test some php pages locally, so i have downloaded PHP5, unpacked, copied the ini and dll files to the appropriate places (come to think of it is the vista sys directory c:\windows or c:\windows\system32 Question Confused ).
edited the httpd.conf with the following lines...

Code:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/program files/php"


but cant restart apache cos i get...

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


yes the dll is there! is it vista? pls help
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 20 Sep '07 10:27    Post subject: Reply with quote

For apache 2.2.4 you need to load php5apache2_2.dll
Back to top
drgreen



Joined: 20 Sep 2007
Posts: 2

PostPosted: Thu 20 Sep '07 10:31    Post subject: Reply with quote

Top bloke James, thanks.
Back to top


Reply to topic   Topic: httpd.exe: Syntax error View previous topic :: View next topic
Post new topic   Forum Index -> Other Software