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: Apache+PHP problems
Author
costaup



Joined: 13 Apr 2006
Posts: 5
Location: UK

PostPosted: Thu 13 Apr '06 13:09    Post subject: Apache+PHP problems Reply with quote

Hi All,
Can anyone help please, l keep getting this message below everytime l restart my apache, first time user trying to test with php.


Syntax error on line 959 of C:/Program Files/Apache Group/Apache2/conf/httpd.con
f:
Cannot load C:/Program Files/php/php5apache.dll into server: The specified modul
e could not be found.
Note the errors or messages above, and press the <ESC> key to exit. 24...
Back to top
James Blond
Moderator


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

PostPosted: Thu 13 Apr '06 13:56    Post subject: Reply with quote

Of cause you can load the modul Embarassed because you tried to load the PHP Modul for Apache 1.y.x You have to choose php5apache2.dll
Back to top
costaup



Joined: 13 Apr 2006
Posts: 5
Location: UK

PostPosted: Thu 13 Apr '06 23:06    Post subject: Apache+PHP big problems, please help Reply with quote

l am using win xp prof, l have successfully installed Apache2 and tested fine into this drive path: C:\Program Files\Apache Group\Apache2,

then I downloaded PHP and installed php into this drive path: C:\Program Files\php

then l went into: C:\Program Files\Apache Group\Apache2\conf and open 'httpd' and add to the bottom page this module load:

LoadModule php5_module C:/Program Files/php/php5apache2.dll
AddModule mod_php5.c

then save

restart apache but still I received message stated:
Syntax error on line 960 of C:/Program Files/Apache Group/Apache2/conf/httpd.con
f:
LoadModule takes two arguments, a module name and the name of a shared object fi
le to load it from
Note the errors or messages above, and press the <ESC> key to exit. 26...


then I went to control panel, system properties,Advanced, Evironment variable, system variables, New, try to make the php.ini file available to PHP on windows, I entered followings below:

Variable name: PHPRC
Variable Value: ;C:\Program Files\php

then restart my computer but didn't work in the end

then l have tried to go to system32 and try to add this file 'php5ts.dll' still not happy day and now l have taken out php5ts.dll from system32 and test again still miles away from accepting

Pleaseeeeee please anyone help


James Blond wrote:
Of cause you can load the modul Embarassed because you tried to load the PHP Modul for Apache 1.y.x You have to choose php5apache2.dll
Back to top
James Blond
Moderator


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

PostPosted: Thu 13 Apr '06 23:21    Post subject: Reply with quote

AddModule mod_php5.c is wrong! That is from apache 1.y.x
remove that.
to help your self faster. Open the httpd.conf with a editor that showes you the linenumber, so you can find the errors!
Back to top
thompsonay



Joined: 07 Oct 2008
Posts: 6

PostPosted: Tue 07 Oct '08 15:00    Post subject: re:load needst two parameters Reply with quote

i had the same problem to start with...if you are running 2.2 it needs to be:


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

make sure the path leads correctly to this file.

also if you have apache and php installed on same path it will struggle
i changed directory for mine for php to c:/php made the necessary corrections to httpd.conf restart
Back to top


Reply to topic   Topic: Apache+PHP problems View previous topic :: View next topic
Post new topic   Forum Index -> Other Software