php malformed header from script

Bob Hemus bobhemus
Mon Feb 20 22:21:34 PST 2006


----- Original Message ----- 
From: "A. Khattri" <ajai at bway.net>
To: "Linux tips and tricks" <linux-users at linux-sxs.org>
Sent: Saturday, February 18, 2006 8:30 AM
Subject: Re: php malformed header from script


> On Sat, 18 Feb 2006, Collins Richey wrote:
>
>> Not many run php as cgi under apache, since there's a more direct
>> route. With my debian (ie Ubuntu) system all that's necessary is the
>> following (set automagically by the package installation). Yours could
>> be php4, of course.
>>
>> /etc/apache2/apache2.conf
>> ...
>> DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
>>
>> ...
>> and
>> /etc/apache2/mods-enabled/php5.conf & ...php5.load (symlinks to
>> /etc/apache2/mods-available/...)
>>
>> php5.load contains
>> LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
>>
>> php5.conf contains
>> <IfModule mod_php5.c>
>>   AddType application/x-httpd-php .php .phtml .php3
>>   AddType application/x-httpd-php-source .phps
>> </IfModule>
>
> In Gentoo you just set "-D PHP4" in /etc/conf.d/apache.
>
> Ubuntu sounds more complicated especially given that its a "user-oriented"
> disttobution.

I'm with you, although that's what I've been using.  I hate sudo!  I like 
su - ..I finally got a Kbuntu, but it's not the same as the other distros 
KDEs.  Anyway just my opinion.
Bob 



More information about the Linux-users mailing list