You are here: Premature end of script headers: php « PHP « IT news, forums, messages
Premature end of script headers: php

Posted by Claudio on 10/21/80 11:07

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация