PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache und der PHP streik



uTaNG
18.05.03, 13:23
Hi,

bin gerade dabei mein LAMP aufzubauen.
Mein Apache und MySQL funktioniert auch schon wunderbar.
Allerdings kann ich mir keine PHP Seiten anzeigen lassen.
Beim Aufruf einer PHP Seite mit Apache lässt mein Browser
direkt ein Dialogfenster öffnen um die PHP Seite zu speichern.

Nehme an, dass ich unter /etc/apache/conf/apache.conf
eine fehlenenden EIntrag für das PHP Modul habe, bzw. da was nicht ganz klappt.

Brauche deshalb den genauen PHP Zusatz für meine apache.conf

Wenn ich in
Datei: /etc/apache/conf/commonapache.conf

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>


setze. kommt bei einem restart des Apache


/etc/init.d/apache restart
* Starting apache...
Syntax error on line 401 of /etc/apache/conf/commonapache.conf:
Invalid command 'SetOutputFilter', perhaps mis-spelled or defined by a module not included in the server configuration [ !! ]
kann da wer helfen?

kurzer Auszug aus der error.log

[Sun May 18 13:59:12 2003] [notice] Apache/1.3.27 (Unix) (Gentoo/Linux) PHP/4.3.1 configured -- resuming normal oper$
[Sun May 18 13:59:12 2003] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun May 18 13:59:12 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Sun May 18 14:01:20 2003] [notice] caught SIGTERM, shutting down


Danke

dauni
18.05.03, 13:36
Was steht denn in Zeile 401 von deiner commonapache.conf?

uTaNG
18.05.03, 13:42
jetzt geht es, nach dem ich folgende Eintragungen durch genommen habe:

/etc/apache/conf/apache.conf

<IfDefine PHP4>
LoadModule php4_module extramodules/libphp4.so
</IfDefine>

/etc/apache/conf/commonapache.conf

<IfModule php4_module>
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .php4 .php3 .phtml .html.htm
AddType application/x-httpd-php-source .phps
</IfModule>




Was steht denn in Zeile 401 von deiner commonapache.conf?

SetOutputFilter PHP