Lukas
07.04.2005, 17:33
Moin,
da die bei SuSE-Linux mitgelieferte Php-Version mit --disable-sessions (also ohne Session-Funktionen) kompiliert wurde, kann ich auf meinem localhost nichts mit Sessions machen. Daher wollte ich Php neu kompilieren. Das hat auch soweit geklappt (dank Jeez' Hilfe), das configure-Script und make funktionieren.
Bei make install kommt folgende Fehlermeldung:
apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.
Hier (http://php.paradoxical.co.uk/manual/en/install.unix.apache2.php) habe ich folgendes gefunden:
1. Edit Makefile and change the following line to remove "install-sapi":
install_targets = install-sapi install-cli install-pear install-build install-headers install-programs
2. Issue the make install command again:
$ su -c "make install"
3. Add the PHP module & type instructions to the Apache configuration. As root, create a new file, /etc/apache2/conf.d/php5.conf that contains the following lines:
LoadModule php5_module /usr/lib/apache2/libphp5.so
AddType application/x-httpd-php php
Gesagt, getan, make install funktioniert einwandfrei. Den alten Inhalt des Files /etc/apache2/conf.d/php4.conf habe ich auskommentiert und das reingeschrieben, was im Schritt 3 beschrieben ist (außer, dass ich die 5 durch 4 ersetzt habe). Beim Start des Server kommt folgende Fehlermeldung:
Starting httpd2 (prefork) Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf:
Cannot load /usr/lib/apache2-prefork/libphp4.so into server: /usr/lib/apache2-prefork/libphp4.so: undefined symbol: sapi_module
The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
failed
Die Frage ist einfach: Was tun?
da die bei SuSE-Linux mitgelieferte Php-Version mit --disable-sessions (also ohne Session-Funktionen) kompiliert wurde, kann ich auf meinem localhost nichts mit Sessions machen. Daher wollte ich Php neu kompilieren. Das hat auch soweit geklappt (dank Jeez' Hilfe), das configure-Script und make funktionieren.
Bei make install kommt folgende Fehlermeldung:
apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.
Hier (http://php.paradoxical.co.uk/manual/en/install.unix.apache2.php) habe ich folgendes gefunden:
1. Edit Makefile and change the following line to remove "install-sapi":
install_targets = install-sapi install-cli install-pear install-build install-headers install-programs
2. Issue the make install command again:
$ su -c "make install"
3. Add the PHP module & type instructions to the Apache configuration. As root, create a new file, /etc/apache2/conf.d/php5.conf that contains the following lines:
LoadModule php5_module /usr/lib/apache2/libphp5.so
AddType application/x-httpd-php php
Gesagt, getan, make install funktioniert einwandfrei. Den alten Inhalt des Files /etc/apache2/conf.d/php4.conf habe ich auskommentiert und das reingeschrieben, was im Schritt 3 beschrieben ist (außer, dass ich die 5 durch 4 ersetzt habe). Beim Start des Server kommt folgende Fehlermeldung:
Starting httpd2 (prefork) Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf:
Cannot load /usr/lib/apache2-prefork/libphp4.so into server: /usr/lib/apache2-prefork/libphp4.so: undefined symbol: sapi_module
The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
failed
Die Frage ist einfach: Was tun?