php malformed header from script
A. Khattri
ajai
Sat Feb 18 11:52:01 PST 2006
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"
distro.
--
More information about the Linux-users
mailing list