Re: PHP5 Build - test.php not working
| From: | Richard Lynch | Date: | Wed, 01 Feb 2006 01:37:13 +0000 |
| Subject: | Re: PHP5 Build - test.php not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229601@lists.php.net to get a copy of this message | ||
On Mon, January 30, 2006 8:08 pm, Tod Thomas wrote:
> I just built phpV5.1.2 with the same options I used to build php4:
>
> ./configure --prefix=/opt/php5
> --with-apxs2=/opt/apache/bin/apxs
> --with-mysql=/opt/mysql
> --disable-cgi --with-zlib
>
> After make install I had libphp5.so in the ./apache/modules directory
> as
> expected. I commented out my LoadModule directive for php4 and
> uncommented out the directive for php5. I copied php.ini-dist to
> /opt/php5/lib/php.ini and restarted apache.
>
> I expected the test.php page that displays the date, time and the
> output
> of phpinfo() to work. Instead it just prints out all of the text,
> never
> interpreting the code.
>
> When I switch it back to php4 everything works fine. Neither the
> access
> or error logs display any problems. ldd of libphp5.so shows everthing
> as resolved. The apache user owns that lib as well as liphp4.so so no
> problems there. httpd -t says everthing is syntactically correct.
> I've
> really changed nothing other than the library and its name in
> httpd.conf.
>
> What else could I be doing wrong? Is there something I can try to
> debug
> and get it to tell me what's up?
I think your add-handler would only work for PHP as CGI...
The AddType directives are frequently encased in httpd.conf in blocks
something like:
<If mod_php4.c>
AddType application/x-httpd-php .php
</If>
That syntax is wrong, but you get the point -- If you've uncommented
the PHP4 Module, the mod_ph4.c (or whatever it is) needs to change to
5 as well, in the conditional expression that enables PHP4/PHP5.
--
Like Music?
http://l-i-e.com/artists.htm