• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Problem PHP5

Ich bin mir nicht sicher, ob dies der richtige Bereich ist, aber notfalls bitte verschieben.

Folgendes Problem. Ich versuche seit Tagen, auf meinem SuSE 9.1 PHP5 zu installieren. Dabei nutze ich den Apache2, der mit der Installation von SuSE mitgeliefert wird.

Ich habe mir das aktuelle tgz von php.net geladen und nach

/usr/share/php-5.0.2

entpackt.

Die Konfiguration nehme ich wie folgt vor:

./configure --prefix=/usr --datadir=/usr/share/php --mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --sysconfdir=/etc --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --disable-debug --enable-inline-optimization --enable-memory-limit --enable-magic-quotes --enable-safe-mode --enable-sigchild --with-apxs2=/usr/sbin/apxs2-prefork --enable-bcmath --enable-calendar --enable-ftp --with-mysql --with-pear

Das klappt ohne Probleme, auch das anschliessende "make" funktioniert. Rufe ich dann "make install" auf erhalte ich folgende Fehlermeldung:

linux:/usr/share/php-5.0.2 # make install
Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' libphp5.la /usr/lib/apache2-prefork
/usr/share/apache2/build/libtool --mode=install cp libphp5.la /usr/lib/apache2-prefork/
cp .libs/libphp5.so /usr/lib/apache2-prefork/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache2-prefork/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/share/php-5.0.2/libs'
chmod 755 /usr/lib/apache2-prefork/libphp5.so
apxs:Error: Activation failed for custom /etc/apache2/httpd2-prefork.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install-sapi] Fehler 1

Zuerst hat er nach der httpd2-prefork.conf verlangt, hier habe ich jetzt einfach die aktuelle httpd.conf kopiert und umbenannt.
Aber ich verstehe nicht wirklich, was er von mir will. Kann mir jemand einen Denkanstoss geben?

Mit der PHP-Version 4.3.9 klappt es ohne Probleme...?! :roll:
 
Hallo,

versuch doch mal die SuSE-Sachen beseite zu lassen und nimm XAMPP. Da hast Du sowohl PHP 4.3.8 als auch PHP 5.02 dabei. Kompililieren musst Du auch nix.

HTH,

Al
 
ich will es ja lernen und begreifen ;-) wenn ich immer pakete nehme, dann kapier ich es nie und kann gleich bei "klicki-bunti" windows bleiben :wink:
 
csh
echo "\nLoadModule foo foo.so" > /etc/apache2/httpd2-prefork.conf"
vi /etc/sysconfig/apache2

On the line starting APACHE_MODULES="... php4" change php4 to php5.

sudo make install
# edit httpd2-prefork.conf, and remove the two LoadModule lines
/etc/init.d/apache2 restart 1fd7
 
Oben