View previous topic :: View next topic |
Author |
Message |
utang Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 20 Apr 2003 Posts: 190
|
Posted: Sun May 18, 2003 12:05 pm Post subject: Apache und PHP |
|
|
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
Code: | <Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
|
setze. kommt bei einem restart des Apache
Code: | /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?
Danke[/b] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
utang Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 20 Apr 2003 Posts: 190
|
Posted: Sun May 18, 2003 12:40 pm Post subject: |
|
|
jetzt geht es, nach dem ich folgende Eintragungen durch genommen habe:
/etc/apache/conf/apache.conf
Code: | <IfDefine PHP4>
LoadModule php4_module extramodules/libphp4.so
</IfDefine> |
/etc/apache/conf/commonapache.conf
Code: | <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> |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|