Suse 9.0, Apache2,Pleks und PHP5 irgendwas spinnt :(
Posted: 2005-07-02 11:11
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 ......