Dont add the LoadModule in the top of the file, Just add it at the end of
the file. It will work fine there
i.e.
[httpd.conf]
.
.
.
.
.

LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php

-----Original Message-----
From: Ali [mailto:[EMAIL PROTECTED]]
Sent: Wed, 27 Mar 2002 04:32
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP as an Apache module


hi all,

i'm new to PHP and PHP installation.  I've tried it before and used the cgi
since I couldn't figure out the module installation.  but i really want to
get it working.  the problem is whatever I do, I get an error message from
Apache.  I installed the binary version of the latest release of PHP and
then added the parameters to httpd.conf:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

I also tried it this way:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

but in the first case i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

in the second situation i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

I looked around and it seems to me that i have to compile from the source in
order to get Apache working with the module.  but i don't have VC++ and
compliling seems too complicated.  any solutions?

thanks




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to