PHP wird zum Download angeboten

Alles, was PHP betrifft, kann hier besprochen werden.

PHP wird zum Download angeboten

Postby PID » 06. October 2006 08:39

Hi @ll,

ich habe ein PHP Update gemacht.
Seitdem werden mir die PHP-Dateien zum Download angeboten,
obwohl ich keine Änderungen in der Apache-Conf gemacht habe.

Für einen VHost funktioniert PHP allerdings (Horde).
Hier der Auszug aus dem VHost für Webmail:

Code: Select all
        <Directory /usr/share/horde>
                <IfModule mod_php4.c>
                        php_admin_flag engine on
                        php_admin_flag magic_quotes_gpc off
                        php_admin_flag safe_mode off
                        php_admin_value open_basedir "/usr/share/horde:/etc/horde:/tmp:/var/log:/usr/share/doc"
                        php_admin_value include_path "/usr/share/horde:/usr/share/horde/pear:."
                </IfModule>
                <IfModule mod_php5.c>
                        php_admin_flag engine on
                        php_admin_flag magic_quotes_gpc off
                        php_admin_flag safe_mode off
                        php_admin_value open_basedir "/usr/share/horde:/etc/horde:/tmp:/var/log:/usr/share/doc"
                        php_admin_value include_path "/usr/share/horde:/usr/share/horde/pear:."
                </IfModule>
                Order allow,deny
                Allow from all
        </Directory>


Ich habe die Einstellungen für einen anderen VHost übernommen (natürlich die Pfade angepasst) allerdings bekomme ich PHP nicht zum laufen. Nur im Webmail.

Ich denke, das PHP richtig installiert ist, weil ja Horde läuft, es kann also eigentlich nur ein sehr kleines Problem sein denke ich. Aber im Moment komme ich einfach nicht auf die Lösung.

Kann mir jemand unter die Arme greifen?

Vielen Dank!
PID
PID
 
Posts: 3
Joined: 06. October 2006 08:09

Postby Wiedmann » 06. October 2006 08:50

Seitdem werden mir die PHP-Dateien zum Download angeboten,

Dann fehlt wohl ein:
Code: Select all
AddType application/x-httpd-php .php
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby PID » 06. October 2006 08:57

Hi,

ja, die Idee kam mir auch schon.
Das habe ich aber schon Global eingetragen (und zum Testen natürlich auch im VHost).
Bringt mir trotzdem keine Änderung...
PID
 
Posts: 3
Joined: 06. October 2006 08:09

Postby Wiedmann » 06. October 2006 09:03

Dann wird wohl was anderes nicht stimmen *g*

kennt ja jetzt aber auch keiner die Konfig von deinem Server und dem VHost der Probleme macht.

(Tut PHP denn im Hauptserver?)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby PID » 06. October 2006 09:19

ich glaube, ich habe den fehler gefunden!

ich hatte je folgende config:

Code: Select all
                <IfModule mod_php4.c>
                        php_admin_flag engine on
                        php_admin_flag magic_quotes_gpc off
                        php_admin_flag safe_mode off
                        php_admin_value open_basedir "/var/www/vhosts/mydomain.de/httpdocs:/tmp:/usr/share/doc"
                </IfModule>


nun habe ich einfach das ifmodule entfernt und es funktioniert!
VIELEN DANK! ich glaube deien antworten haben mir meine denkblockade gelöst ;)
PID
 
Posts: 3
Joined: 06. October 2006 08:09


Return to PHP

Who is online

Users browsing this forum: No registered users and 13 guests