PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apche2 + php4 installiert aber kein mod_php4.c ??



uschzmet
04.07.04, 14:21
hi, ich hab den apache2 auf mandrake 9.1 aufgesetzt , alles supi

php ist auch installiert

problem: obwohl alles eingetragen ist in die httpd.conf
wird der mod_php4.c nicht geladen
wenn ich das "AddModule mod_php4.c" dazunehm gibts ne fehlermeldung :

Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration

ne dolle sache wenn alles andere läuft ...

mal ne zusätzliche frage: wenn ich im apache/bin-verzeichnis dann ./httpd -l aufrufe müsste doch das mod_php4.c mit drinnstehn wenn es funzen würde oder?

hat irgendwer n tipp warum das LoadModule geht und das AddModule nichtgeht? :eek:

temir
04.07.04, 21:25
die .c Datei soll entweder in der module-DIR von apache liegen, oder den vollen Pfad angeben.

uschzmet
05.07.04, 08:41
kann es sein das "AddModule mod_php4.c" garnicht aufgerufen werden brauch?

zumindest beim genaueren lesen in der php-install-docu auf http://www.php.net/manual/de/install.apache2.php steht nix von "Add..."


14. Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.

For PHP 4:

LoadModule php4_module libexec/libphp4.so

For PHP 5:

LoadModule php5_module libexec/libphp5.so

15. Tell Apache to parse certain extensions as PHP. For example,
let's have Apache parse the .php extension as PHP. You could
have any extension(s) parse as PHP by simply adding more, with
each separated by a space. We'll add .phtml to demonstrate.

AddType application/x-httpd-php .php .phtml

It's also common to setup the .phps extension to show highlighted PHP
source, this can be done with:

AddType application/x-httpd-php-source .phps



PS: noch n tip am rande ... also php geht jetzt aber komisch war nur das plötzlich meine php-basteleien nichtmehr funzten ...

Anmerkung: Der Standardwert für die PHP-Option register_globals wurde von on zu off in PHP 4.2.0 geändert.

einfach in die "php.ini" im "/etc/..." rein und da bei "register_globals" auf "On" stellen
das global-ding regelt die variablen beim übermitteln von daten über den browser , also GET/POST und sonstnochwas... :ugly:

@temir: module-DIR gibts nich und die mod_php4.c is auch sonst nirgends zu finden ... nuja merkwürdsch ... :confused:

temir
05.07.04, 21:06
module-DIR gibts nich ...
hm, und wie wärs mit /usr/lib/apache2 ?
Die .c Datei einfach suchen...

uschzmet
06.07.04, 15:33
is nix mit suchen leider, find brachte im /etc und im /usr nix

ich glaub bald das das entweder eine datei älterer version ist oder sogar ne automatisch kreirte oder so ... wer weehs :ugly: