apache lässt alle seiten als download starten

ja, ich hab ne httpd.conf und ne apache2.conf.
in der apache2.conf steht:
Code:
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf
also sollte doch der php4-mod includiert sein, oder?

in der php4.conf steht:
Code:
<IfModule mod_php4.c>
  AddType application/x-httpd-php .php .phtml .php3
  AddType application/x-httpd-php-source .phps
</IfModule>
 
Dann bleibt ja eigentlich nur noch PHP selbst als Fehlerursache. Aktiviere mal in der php.ini das Error-Logging und schau ob es PHP-Fehler gibt.
 
das logging steht schon auf all_errors
display errors ist auf on und log errors auch, aber fehlerlog erstellt er keins.
 
Ist in der php.ini 'error_log' auf eine gültige Logdatei gesetzt? Nur so kommst du an evtl. ausgelöste Fehler, die nicht im Browser angezeigt werden. Wenn auch in der PHP-Errorlog-Datei keine Fehler auftauchen, poste mal bitte deine komplette Apache-Konfiguration inkl. aller includierten Dateien und der php.ini. Evtl. ist irgendwo auch eine Directory-Direktive falsch o.ä. Der Mangel an Fehlermeldungen macht deinen Fall ziemlich verzwickt. ;)
 
also, ich kann dem php nix entlocken, aber hier mal die configs:
apache2.conf
php4.ini

die php4.conf:
Code:
<IfModule mod_php4.c>
  AddType application/x-httpd-php .php .phtml .php3
  AddType application/x-httpd-php-source .phps
</IfModule>

benötigste noch mehr ?

thx!
 
Zuerstmal solltest du die doppelten Direktiven wie ServerRoot usw. entfernen. Auch sowas stellt eine mögliche Fehlerquelle dar. Ansonsten vermisse ich Sachen wie das DocumentRoot und eine passende Directory-Direktive dafür.
 
Und bevor du weiter rumprobierst lösche mal den Cache deines Browsers (Firefox?) oder benutze kurzfristig einen anderen, ich hatte das Problem schon mehr als einmal und daran lag es oft.

Gruß
D.
 
das mit dem serverroot in der apache2.conf kommt vom rauskopieren, da hab ich mich wohl verklickt, in der config stehts nur einmal.
mit DokumentRoot, meinste da das was in /etc/apache2/sites-enabled/ steht?
Code:
NameVirtualHost *
<VirtualHost *>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                RedirectMatch ^/$ /apache2-default/
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>
 
hm, ich hab das ganze mal mit samt den configs gelöscht und neu installiert und konfiguriert, jetzt tut er wie er soll ... :)
 

Ähnliche Themen

Apache lässt phtml-Datei downloaden

apache2 läßt sich auf 1blu vServer nicht mehr starten

Xubuntu - AVR32-linux crosscompile sqlite

d4x problem

Dateifreigabe

Zurück
Oben