Re: PHP4.2.0 + Apache2 prints code

From: Date: Tue, 30 Apr 2002 08:45:33 +0000
Subject: Re: PHP4.2.0 + Apache2 prints code
References: 1  Groups: php.general php.install 
Request: Send a blank email to php-general+get-95338@lists.php.net to get a copy of this message
James Stuart wrote:
I've installed Apache 2.0.35 with PHP 4.2.0 on both FreeBSD and Linux, and both yield the same result. When the test.php page is accessed it returns "<?php phpinfo(); ?>" instead of actually processing it. I have the lines:
LoadModule php4_module        modules/libphp4.so
AddType application/x-httpd-php .php in my httpd.conf files, and the /server-info page displays the server as: Server Version: Apache/2.0.35 (Unix) PHP/4.2.0 It also indicates that "sapi_apache2.c" is loaded. I've tried making the php files +x, and also accessing them in directories that are set as Options ExecCGI, but nothing causes apache to actually process the php. I have to be doing something wrong here, but for the life of me I can't figure out what it is. The only thing I can think of that might help is an AddHandler line, but I don't know what I'd put there as a handler. Any thoughts/comments/ideas would be greatly appreciated.
Read README file in the SAPI directory. sapi/apache2filter/README -- Yasuo Ohgaki

« previous php.general (#95338) next »