Entwickler-Ecke

Off Topic - PHP gab Geist auf


Bela Urlaub - Mi 01.10.03 13:38
Titel: PHP gab Geist auf
Hi Leutz,
ich hab n Problem, ein sehr großes!
und zwar:
Gestern hab ich an meiner httpd.conf ein bisschen rumprobiert, warum .htaccess das Passwort und den Benutzernamen nicht annimmt.
Hab den Fehler nicht gefunden und seit dem läuft kein PHP mehr :?
Wer das mal sehn will klickt grad mal hier [http://belaurlaub.dnsalias.net]
Bitte um Hilfe!

PS: httpd.conf werde ich noch posten!


Bela Urlaub - Mi 01.10.03 14:03



neojones - Mi 01.10.03 14:54

Moinsen!

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>

Sollte evtl so geändert werden (Das verursacht zwar nicht Dein Problem, ist aber etwas konformer):

<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.phtml index.php3 index.php4
</IfModule>



Läuft der PHP-Preprozessor? Unter NT bzw. 2000 ist das ein Dienst. Wenn der nicht läuft, wird erst gar nicht angefangen, die Dateien zu interpretieren.

Viele Grüße,

Matthias

P.S.: Never Touch a Running System *fg*


Bela Urlaub - Mi 01.10.03 16:10

Ich glaub ich sollt noch n paar daten dazu schreiben.

APACHE Vers. 1.3.28
PHP Vers. 4.3.2
OS: WinXP Prof
Zitat:
Sollte evtl so geändert werden (Das verursacht zwar nicht Dein Problem, ist aber etwas konformer):

Danke für den Tip, aber die PHP/HTML-Formate verwend ich net ;)
Ich brauch nur php und html


barfuesser - Mi 01.10.03 16:35

Versuch mal folgenden Abschnitt

Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
    # 
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that 
    # documents in the realname directory are treated as applications and 
    # run by the server when requested rather than as documents sent to the client. 
    # The same rules about trailing "/" apply to ScriptAlias directives as to 
    # Alias. 
    # 
    ScriptAlias /cgi-bin/ "D:/Programme/Apache Group/Apache/cgi-bin/" 
    ScriptAlias /php/ "D:/PHP/" 

    # 
    # "D:/Programme/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased 
    # CGI directory exists, if you have that configured. 
    # 
    <Directory "D:/Programme/Apache Group/Apache/cgi-bin"> 
        AllowOverride None 
        Options None 
        Order allow,deny 
        Allow from all 
    </Directory>

wie folgt zu ergänzen:

Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
    # 
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that 
    # documents in the realname directory are treated as applications and 
    # run by the server when requested rather than as documents sent to the client. 
    # The same rules about trailing "/" apply to ScriptAlias directives as to 
    # Alias. 
    # 
    ScriptAlias /cgi-bin/ "D:/Programme/Apache Group/Apache/cgi-bin/" 
    ScriptAlias /php/ "D:/PHP/" 

    # 
    # "D:/Programme/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased 
    # CGI directory exists, if you have that configured. 
    # 
    <Directory "D:/Programme/Apache Group/Apache/cgi-bin"> 
        AllowOverride None 
        Options None 
        Order allow,deny 
        Allow from all 
    </Directory>

    <Directory "D:/PHP"> 
        AllowOverride None 
        Options ExecCGI
        Order allow,deny 
        Allow from all 
    </Directory>

mit dem ExecCGI bin ich mir nicht sicher. Aber irgendwie mußt Du bestimmt angeben, daß das Ausführen von php-Scripten erlaubt ist. Bei CGI-Scripten macht man das mit ExecCGI. Ich weiß aber nicht, ob php-Scripte auch als CGI-Scripte zählen.

barfuesser