Re: Premature end of script headers: php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Maybe... What is the diference?

In /usr/local/php-4.3.10/ I have 5 files after "make install"

(pear php php-config phpextdist phpsize)

What should I do? How can I "make" the cgi-executable?

"Marek Kilimajer" wrote:
> My guess cli binary is executed instead of cgi.
>
> Claudio wrote:
>> Hi,
>> Im trying to use PHP4 and PHP5 at the same time. PHP4 as CGI and PHP5 as
>> module.
>> PHP5 ist actually not present and not installed
>> PHP4 runs find as module, when I try to use it as CGI I receive the error
>> message:
>> "Premature end of script headers: php"
>>
>> Can someone help me?
>>
>>
>> Here my used configurations:
>>
>> Testfile: <?php phpinfo(); ?>
>>
>> Webserver: Apache 2.0.50 (Linux/Suse) installed as RPM
>>
>> PHP4 version 4.3.10 self compiled from downloaded tar
>>        ./configure \
>>                 --with-apxs2=/usr/sbin/apxs2-prefork \
>>                 --prefix=/usr/local/php-4.3.10 \
>>                 --with-mysql --with-ldap
>>
>> httpd.conf:
>> #
>> # If PHP4 is loaded as module
>> #
>> #<IfModule sapi_apache2.c>
>> <IfModule mod_php4.c>
>>         AddType application/x-httpd-php .php
>>         AddType application/x-httpd-php .php3
>>         AddType application/x-httpd-php .php4
>>         AddType application/x-httpd-php-source .phps
>>         DirectoryIndex index.php
>>         DirectoryIndex index.php3
>>         DirectoryIndex index.php4
>> </IfModule>
>>
>> #
>> # To load PHP4 as CGI
>> #
>> <IfDefine PHP4_CGI>
>>         ScriptAlias /php4/ /usr/local/php-4.3.10/bin/
>>         <Directory "/usr/local/php-4.3.10/bin/">
>>             AllowOverride None
>>             Options +ExecCGI -Includes
>>             Order allow,deny
>>             Allow from 192.168.11
>>         </Directory>
>>         AddType application/x-httpd-php4 .php
>>         AddType application/x-httpd-php4 .php3
>>         AddType application/x-httpd-php4 .php4
>>         AddType application/x-httpd-php-source .phps
>>
>>         Action application/x-httpd-php4 /php4/php
>>
>>         DirectoryIndex index.php
>>         DirectoryIndex index.php3
>>         DirectoryIndex index.php4
>> </IfDefine>
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux