RE: [PHP-WIN] PHP as an Apache module
| From: | Tommy Claasens / QDC KZN | Date: | Wed, 27 Mar 2002 07:16:45 +0000 |
| Subject: | RE: [PHP-WIN] PHP as an Apache module | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12769@lists.php.net to get a copy of this message | ||
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:a_nayeri@yahoo.com]
Sent: Wed, 27 Mar 2002 04:32
To: php-windows@lists.php.net
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