Re: php and Apache won't play nice
| From: | Jim Thome | Date: | Mon, 31 Mar 2003 02:27:33 +0000 |
| Subject: | Re: php and Apache won't play nice | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10456@lists.php.net to get a copy of this message | ||
Did you add the LoadModule line?
LoadModule php4_module modules/libphp4.so
--
Jim
>>> Jim Kelly <james.kelly@wap.org> 03/30/03 18:01 PM >>>
When I surf to a phpinfo.php file in apache htdocs dir the browser
insists on downloading the file instead of executing it showing me my
php setup page
I've modified httpd.conf adding:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddModule mod_php4.c
here are the last few lines in the section:
AddModule mod_access.c
AddModule mod_auth.c
AddModule mod_so.c
AddModule mod_setenvif.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_php4.c
When I do apachectl configtest I get:
Syntax error on line 233 of /usr/local/apache/conf/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
I installed php from source.
I used this config statement
./configure --with-mysql=/usr/local/mysql
--with-apxs=/usr/local/apache/bin/apxs --enable-bcmath --enable-sockets
--enable-track-vars
then i mv'ed php.ini-recommended to /usr/local/lib/php.ini
Could someone please point me straight?
Why is php stubbornly refusing to work here
jim kelly
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php