Apache Webserver startet mein php nicht
TOM
- webserver
hiho!
/me hat windoof 2000 und folgendes prob:
was mach ich falsch? mein Apache startet php nicht!!
hab folgendes eingetragen:
httpd.conf:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
php liegt in %apacheroot%/php/php.exe
thx TOM
hiho!
/me hat windoof 2000 und folgendes prob:
was mach ich falsch? mein Apache startet php nicht!!
hab folgendes eingetragen:
httpd.conf:
And for PHP 4.x, use:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
php liegt in %apacheroot%/php/php.exe
thx TOM
also nochmal:
also ich habe folgendes in der httpd.conf (unter win:)
AddType application/x-tar .tgz
ScriptAlias /php4/ "c:/php4/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php4/php.exe"
und unter linux: (als mod_php)
# http://www.php.net) will typically use:
#
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml
</IfModule>
#
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
#
vielleicht hilfts?
Hi,
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
1. Du definiert für diverse Endungen einen MIME-Typ
Action application/x-httpd-php "/php4/php.exe"
2. Du bindest diesen MIME-Typ an einen Handler
ScriptAlias /php4/ "c:/php4/"
3. Du sorgst dafür, daß der Handler CGI-ausführbar ist.
Das klingt alles vernünftig. (Die Reihenfolge ist egal - ich habe mal so umsortiert, daß die Abhängigkeiten besser erkennbar werden.)
Und was genau passiert jetzt in Deiner Konfiguration?
Mir fehlen genauere Angaben zur Beschreibung des eigentlichen Problems ...
Viele Grüße
Michael
hiho!
/me hat windoof 2000 und folgendes prob:
was mach ich falsch? mein Apache startet php nicht!!
hab folgendes eingetragen:
httpd.conf:
And for PHP 4.x, use:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
php liegt in %apacheroot%/php/php.exe
thx TOM
Hallo,
überprüfe php.ini im Windows-Verzeichnis.
Starte mal php.exe manuell über AUSFÜHREN
Versuche mal über http://localhost die index.html im apache-Verzeichnis zu starten.
Alle localhost-files müssen unter %apacheroot%/htdocs/*.php;*.html gespeichert sein.
Willst Du mit php-Edit arbeiten, ist auch htdocs das Arbeitsverzeichnis, sonst funzt dat nicht *ggg*
Starte php-files für einen Offline-Test nicht über cgi-bin.
Hoffe das hilft erstmal.
Wenn Du Windows98 hast, kann ich Dir alle config-files mal zippen und rübermailen.
PS.:
Unter Windows 2000 müssen auch Schreib- und Execute-Rechte gesetzt werden.
Unter Linux ist das CHMOD 775 für die Verzeichnisse und CHMOD 777 für die htdocs. Ansonsten müssen alle Dateien unter htdocs auf CHMOD 666 gestzt werden.
Bei online-Verzeichnissen be carefull, setze da auf jeden Fall eine index.html mit 0 Bytes Länge ein.