RE: [PHP-WIN] PHP as an Apache module
| From: | Tommy Claasens / QDC KZN | Date: | Wed, 27 Mar 2002 08:54:57 +0000 |
| Subject: | RE: [PHP-WIN] PHP as an Apache module | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12772@lists.php.net to get a copy of this message | ||
What exactly do you mean with
"and then ofcourse it doesn't load my extensions and the rest of
formatings."
Thanks
Tommy
-----Original Message-----
From: Ali Nayeri [mailto:a_nayeri@yahoo.com]
Sent: Wed, 27 Mar 2002 10:15
To: Tommy Claasens / QDC KZN; php-windows@lists.php.net
Subject: RE: [PHP-WIN] PHP as an Apache module
that worked! thank you! I just got another question. when i ran a phpinfo
script it gave me info that was wrong:
Configuration File (php.ini) Path ---> c:\winnt
-->but i got winMe and the ini is actually in c:\windows\system\
and then ofcourse it doesn't load my extensions and the rest of formatings.
anyway i can change that?
thanks for your help
-----Original Message-----
From: Tommy Claasens / QDC KZN [mailto:TommyC@ComparexAfrica.co.za]
Sent: March 26, 2002 11:17 PM
To: 'Ali'; php-windows@lists.php.net
Subject: RE: [PHP-WIN] PHP as an Apache module
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
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com