PHP4.2.0 + Apache2 prints code

From: Date: Sun, 28 Apr 2002 20:04:43 +0000
Subject: PHP4.2.0 + Apache2 prints code
Groups: php.general php.install 
Request: Send a blank email to php-general+get-95007@lists.php.net to get a copy of this message
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. Thanks, James

« previous php.general (#95007) next »