Eagle
20.03.05, 21:25
Hallo,
ich habe Probleme auf Debian/Woody mit Apache 1.3 und PHP4 das Php zum Laufen zu bringen.
httpd.conf:
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
AddType image/bmp .bmp
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php3 .php4
AddType application/x-httpd-php-source .phps
</IfModule>
habe ich eingetragen. Und auf /etc/php4/apache/php.ini habe nach /etc/php.ini verlinkt.
Wenn ich
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
in die httpd.conf eingebe, bekomme ich die Meldung:
Syntax error on line 877 of /etc/apache/httpd.conf:
Invalid command 'SetOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration
Und phpinfo.php läßt nach einem Server-Neustart nicht öffnen, sondern es wird ein Download angeboten.
Kann mir jemand mitteilen, was ich noch falsch mache?
Vielen Dank!
MfG
Andreas
ich habe Probleme auf Debian/Woody mit Apache 1.3 und PHP4 das Php zum Laufen zu bringen.
httpd.conf:
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-tar .tgz
AddType image/bmp .bmp
<IfModule mod_php4.c>
AddType application/x-httpd-php .php .php3 .php4
AddType application/x-httpd-php-source .phps
</IfModule>
habe ich eingetragen. Und auf /etc/php4/apache/php.ini habe nach /etc/php.ini verlinkt.
Wenn ich
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
in die httpd.conf eingebe, bekomme ich die Meldung:
Syntax error on line 877 of /etc/apache/httpd.conf:
Invalid command 'SetOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration
Und phpinfo.php läßt nach einem Server-Neustart nicht öffnen, sondern es wird ein Download angeboten.
Kann mir jemand mitteilen, was ich noch falsch mache?
Vielen Dank!
MfG
Andreas