Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(
Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(
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 ......
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 :(
Apache updaten und PHP rekompilieren...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings 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.
Wings for Life ● Wings 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.
Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(
alles so gemacht wie du gesagt hattest doch leider wird mir die php datei immer noch zum download angeboten 
Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(
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 :(
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 :(
Code: Select all
httpd2 -v
php -v
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings 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.
Wings for Life ● Wings 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.
Re: Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(
d80-237-144-67:~ # httpd2 -v
Server version: Apache/2.0.54
Server built: May 18 2005 15:26:29
das liegt wohl daran das ich auf MySQL 4.1.12 geupdatet habe oder ? hab die rpms von MySQL einfach per rpm -Uhv ..... installiert.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
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 :(
Lies bitte das Changelog für PHP5 (Hint: MySQL-Client) und verwende bitte einen sauberen ./configure (keinen für PHP4!)...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings 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.
Wings for Life ● Wings 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.
