PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : php4 in httpd.conf einbinden



pablovschby
03.12.04, 20:08
Hallo,
Die 2 Dateien sind in /usr/local/lamp/apache/current/modules/libphp4.a libphp4.laund in /usr/local/lamp/apache/current/conf/httpd.conf stand (nach lamp-anleitung (http://www.linuxforen.de/forums/showthread.php?t=74990&highlight=lamp)):
#
-----------------------------------------------------------------------------------
LoadModule php4_module modules/libphp4.so # --> PHP-Modul laden #(das ist Zeile 202)
#
-----------------------------------------------------------------------------------

#------------------------------------------------------------------------------------
Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files
Na klar, das so-file gibts ja gar net, aber wie muss ich php4 in httpd.conf einbinden, wenn ich die obenstehen .a-files habe? Denn so gibt der aus:
/etc/init.d/apachectl start
Syntax error on line 202 of /usr/local/lamp/apache/2.0.44/conf/httpd.conf:
LoadModule takes two arguments, a module name and the name of a shared object file to load it fromOhne php4 läuft der apache natürlich

Tomek
03.12.04, 21:45
Man soll nicht nur einfach die Konfigurationszeilen aus HowTos kopieren, sondern den Text drum herum auch lesen:

(Files *.php und /Files jeweils in spitze Klammern einschliessen)

Also:

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

Zu dem PHP-Modulproblem: Dir scheint das PHP-Modul zu fehlen. Du hast es entweder nicht richtig kompiliert oder nicht installiert.

pablovschby
03.12.04, 21:55
Zu dem PHP-Modulproblem: Dir scheint das PHP-Modul zu fehlen. Du hast es entweder nicht richtig kompiliert oder nicht installiert.du meinst doch einfach php4 kompilliert, oder?

pablovschby
03.12.04, 22:28
ich hab php4 nun neu kompilliert und die Datei befindet sich 100ert pro andem Ort:
LoadModule php4_module /usr/local/lamp/apache/current/modules/libphp4.soDie Datei ist hundert pro an dieser Stelle, die codierte Zeile ist die Zeile 202, aber beim Starten:
/etc/init.d/apachectl restart
Syntax error on line 202 of /usr/local/lamp/apache/2.0.44/conf/httpd.conf:
LoadModule takes two arguments, a module name and the name of a shared object file to load it fromweiss da niemand ev., was daran falsch ist?