Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with "LoadModule" (taking two arguments)

Status
Not open for further replies.

Johnny753

Programmer
Nov 8, 2001
1
DE
I try to install apache on windows 98 in order to use php. I was told to add the following lines to httpd.conf: LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
I did it, but now I get the error message "LoadModule takes two arguments, a module name and the name of a shared obj
le to load it from".
 
Hi,

All that error message is saying is that the 'Loadmodule' directive requires two arguments : (i) the the name of the module and (ii) the file in which the .so (or .dll) file sits. The name must match the name with which the DSO module was compiled, while the file name should point to a directory relative to /usr/local/apache (or other ServerRoot location. For example if your ServerRoot were c:/program files/apache group/apache, you could copy the .dll to c:/program files/apache group/apache/modules and then change the line to :

LoadModule php4_module modules/php4apache.dll

(basically I don't think apache likes the colon or something in the windows path)

You could also try just putting the second argument in quotes :

LoadModule php4_module "c:/php/sapi/php4apache.dll"

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top