PHP as an Apache module
| From: | Ali | Date: | Wed, 27 Mar 2002 02:32:16 +0000 |
| Subject: | PHP as an Apache module | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12767@lists.php.net to get a copy of this message | ||
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