Page 1 of 1

Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-02 11:11
by scarface
Hallo Community,

habe gestern php5 kompiliert und installiert doch leider bietet mir mein Apache2 nun alle php dateien als Download an das aber auch nur wenn ich die PHP datei direckt aufrufe ansonsten kommt nen 403 :(.
Im Verzeichniss /etc/apache2/conf/
existiert eine Datei namens mod_php4.conf oder so diese habe ich nochmals erzeugt mit den Namen : mod_php5.conf und zwar hat diese Datei den folgenden Inhalt :

<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 .php5
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
DirectoryIndex index.php3
DirectoryIndex index.php4
DirectoryIndex index.php5
</IfModule>

hier nochmal meine configure :

./configure --prefix=/usr/share --datadir=/usr/share/php --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-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-mbstr-enc-trans --enable-mbstring --enable-mbregex --enable-memory-limit --enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning --enable-wddx --enable-yp --with-bz2 --with-ftp --with-gdbm --with-gettext --with-gmp --with-imap=yes --with-jpeg-dir=/usr --with-ldap=yes --with-mcal=/usr --with-mcrypt --with-mhash --with-mysql=/usr --with-ndbm --with-png-dir=/usr --with-readline --with-snmp --with-tiff-dir=/usr --with-ttf --with-freetype-dir=yes --with-xml --with-zlib=yes --with-qtdom=/usr/lib/qt3 --with-gd --with-openssl --with-curl --with-imap-ssl --enable-xslt --with-xslt-sablot --with-iconv --with-apxs2=/usr/sbin/apxs2-prefork i586-suse-linux --without-imap --without-ldap --without-readline --without-snmp --disable-yp


wäre für eine Hilfe sehr dankbar ......

Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-02 11:40
by Joe User
Apache updaten und PHP rekompilieren...

Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-02 15:08
by scarface
alles so gemacht wie du gesagt hattest doch leider wird mir die php datei immer noch zum download angeboten :cry:

Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-02 15:20
by bungeebug
hast du denn die php5_include.conf oder wie dus genannt hast auch in der httpd.conf includiert? oder nur die alte php4 variante?

Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-02 20:00
by scarface
jop, hab sogar schonmal einfach den inhalt aus der conf direkt in die httpd.conf kopiert :? der will immer nur downloaden :(

Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-02 20:18
by Joe User

Code: Select all

httpd2 -v
php -v

Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-03 11:25
by scarface
d80-237-144-67:~ # httpd2 -v
Server version: Apache/2.0.54
Server built: May 18 2005 15:26:29
d80-237-144-67:~ # php -v
php: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such file or directory
das liegt wohl daran das ich auf MySQL 4.1.12 geupdatet habe oder ? hab die rpms von MySQL einfach per rpm -Uhv ..... installiert.
PHp Version habe ich gestern die 4.3.11 kompiliert die läuft auch ohne probs, aber die 5 will irgendwie nicht :?

Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(

Posted: 2005-07-03 12:37
by Joe User
Lies bitte das Changelog für PHP5 (Hint: MySQL-Client) und verwende bitte einen sauberen ./configure (keinen für PHP4!)...

suexec

Posted: 2005-07-03 13:40
by kawfy
:!: Plesk hat eon eigenes suexec, das musst du wieder installieren bzw. die hard links setzen.

/usr/sbin/psa-suexec <= /usr/sbin/suexec

/usr/sbin/psa-apache2-suexec <= /usr/sbin/apache2-suexec und /usr/sbin/suexec2

Ohne Gewähr ...