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

Apache, Lighttpd, nginx, Cherokee
Post Reply
scarface
Posts: 10
Joined: 2003-08-16 10:38
 

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

Post 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 ......
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

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

Post by Joe User »

Apache updaten und PHP rekompilieren...
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.
scarface
Posts: 10
Joined: 2003-08-16 10:38
 

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

Post by scarface »

alles so gemacht wie du gesagt hattest doch leider wird mir die php datei immer noch zum download angeboten :cry:
bungeebug
Posts: 187
Joined: 2004-04-14 10:08
 

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

Post 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?
scarface
Posts: 10
Joined: 2003-08-16 10:38
 

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

Post by scarface »

jop, hab sogar schonmal einfach den inhalt aus der conf direkt in die httpd.conf kopiert :? der will immer nur downloaden :(
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

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

Post by Joe User »

Code: Select all

httpd2 -v
php -v
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.
scarface
Posts: 10
Joined: 2003-08-16 10:38
 

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

Post 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 :?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

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

Post by Joe User »

Lies bitte das Changelog für PHP5 (Hint: MySQL-Client) und verwende bitte einen sauberen ./configure (keinen für PHP4!)...
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.
kawfy
Posts: 307
Joined: 2002-08-08 23:45
 

suexec

Post 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 ...
Post Reply