Installation php5 Suse 9 und Plesk

Apache, Lighttpd, nginx, Cherokee
Post Reply
mephistos
Posts: 18
Joined: 2004-08-11 23:32
 

Installation php5 Suse 9 und Plesk

Post by mephistos »

Hallo zusammen

Also ich versuchs mal hier. Nachdem ich nun 2 Tage am probieren, recherchieren und lesen bin, weiß ich wirklich nicht weiter.

Ich habe einen Root Server (1&1) mit Suse 9.1 und Plesk 7.5. Auf diesem will ich anstatt php4 php5 laufen lassen.

Folgendes habe ich bisher getan:

php5 runtergeladen
php5 compiliert und als apache modul installiert (also configure .. make .. make install).

danach php5 als Modul geladen (LoadModule ...)

apache neu gestartet (keine Fehler) und versucht phpinfo anzuzeigen. Dabei will er dann die Datei runterladen. Ich weiß, dass dies normal dann passiert, wenn der Eintrag "AddType application/x-httpd-php .php" fehlt. Apache inkludiert aber eine Datei Namens php4.conf (Der Name sollte ja wohl egal sein). Dort steht folgendes drin:

<IfModule sapi_apache2.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
</IfModule>

Wie gesagt beim Laden des php4 Moduls funzt alles perfekt, so dass doch eigentlich auch das Parsen von .php Dateien funktionieren sollte. Aber sobald ich das php5 Modul lade will er die Datei immer downloaden.

Habt ihr Hinweise oder Ideen, was ich falsch gemacht habe oder vergessen habe.

Danke
Meph
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Installation php5 Suse 9 und Plesk

Post by Joe User »

PHP mit --with-apxs2 oder --apxs2filter kompiliert? Poste bitte das vollständige ./configure...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mephistos
Posts: 18
Joined: 2004-08-11 23:32
 

Re: Installation php5 Suse 9 und Plesk

Post by mephistos »

./configure --with-mysql --with-pear --disable-cgi --enable-safe-mode --enable-memory-limit --enable-magic-quotes --with-gettext --enable-calendar --with-gd --with-apxs2=/usr/sbin/apxs2 --with-zlib
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Installation php5 Suse 9 und Plesk

Post by Joe User »

Bitte selbst anpassen:

Code: Select all

cd /usr/src/php-5.0.3
./buildconf
CC=gcc CXX=gcc CFLAGS="-O2 -pipe -march=pentium3 -msse -mmmx -mfpmath=sse -fomit-frame-pointer" CXXFLAGS="-O2 -pipe -march=pentium3 -msse -mmmx -mfpmath=sse -fomit-frame-pointer" ./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 --with-apxs2=/usr/sbin/apxs2 --disable-ipv6 --enable-safe-mode --enable-sigchild --enable-magic-quotes --enable-short-tags --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --enable-ctype --with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-ttf --with-freetype-dir --enable-gd-native-ttf --enable-gd-imgstrttf --with-gmp --with-imap --with-imap-ssl --enable-mbstring --with-mcrypt --with-mhash --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --enable-pcntl --enable-shmop --enable-soap --enable-sockets --with-sqlite --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-xmlrpc --with-xsl --with-pear --enable-memory-limit --enable-zend-multibyte && make && make install && install -m 644 -o root -g root php.ini-recommended /etc/php.ini
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
mephistos
Posts: 18
Joined: 2004-08-11 23:32
 

Re: Installation php5 Suse 9 und Plesk

Post by mephistos »

Tja. Und wieder sind etliche Stunden ins Land gestrichen. Ich denke ich gebs erstmal auf.

Ich hab Dein configure ziemlich genau ausprobiert, aber keine Ã?nderung. Im Firefox will er die Datei downloaden und im IE zeigt er mit den php-Code einfach im HTML an (also ...<body><?php phpinfo() ?></body>..)

Danke für Deine Hilfe, aber ich check es nicht. Werde wohl noch ne Weile ohne PHP 5 leben müssen. Obwohl ich das OOP gerne mal ausprobiert hätte.

mfg
Meph
Post Reply