Problems with php-cgi / apache

From: Date: Sun, 11 Sep 2005 16:27:17 +0000
Subject: Problems with php-cgi / apache
Groups: php.install 
Request: Send a blank email to php-install+get-16642@lists.php.net to get a copy of this message
Hello list, I've got a shared hosting environment with the following services: Apache 2.0.51 PHP 4.3.11 under Fedora Core 2. PHP is used as module with Apache, but I want to switch to php-cgi, maybe with fast-cgi, because it seems to be a good option for a better security. So I did the following: - I added the following lines to my httpd.conf: -- snip -- AddType application/x-httpd-cphp .cphp AddHandler application/x-httpd-cphp .cphp Action application/x-httpd-cphp /usr/bin/php -- snap -- The suffix .cphp was chosen just for testing purposes, so my other scripts still work with mod_php4. This is to be changed when it is running. - I've got a small, simple php-script like this: <?php phpinfo(); ?> with the suffix ".cphp". When I try to open this file, I receive an error 500 "Internal Server Error". The error_log says "Premature end of script headers: php". CGI is configured right, because Perl Scripts will run, has anybody an Idea what may be the error? Thank you in advance. Sascha

« previous php.install (#16642) next »