webForumDet fria alternativet

Installationen muppar sig

PHPur PHP

6 svar · 256 visningar · startad av casca

Medlem sedan feb. 20005 891 inlägg
Frågan#1

Finns det någon klassisk noob-grej som orsakar detta? (Försöker ladda en fil med php-ändelse bara)

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, reeperbahn@brevet.nu and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Error-loggen gav följande meddelande:

[Sun Oct 27 02:21:21 2002] [error] [client 127.0.0.1] Premature end of script headers: c:/php/php.exe

Mycket skumt, tidigare har installationen av PHP gått smärtfritt.

(Använder denna guide btw.)

Medlem sedan juni 2002711 inlägg
#2

av vad jag förstår så försöker du installera php eller???

Medlem sedan juni 2000278 inlägg
#3

Du har installerat php och försöker köra ett script??? Eller???

Medlem sedan feb. 20005 891 inlägg
#4

Japp, så är det.

Men PHP-filen innehåller ingen PHP, den heter bara index.php.

Medlem sedan juni 2000278 inlägg
#5

Om du använder apache. Har dyu lagt till nedan i httpd.conf?

ScriptAlias /php/ "C:/php/"
AddType application/x-httpd-php .php .php3 .phtml
Action application/x-httpd-php "/php/php.exe"

Medlem sedan feb. 20005 891 inlägg
#6

Ja, det har jag gjort.

Medlem sedan feb. 20005 891 inlägg
#7

Har löst det nu, hittade nån readme och installerade som SAPI-modul istället.

132 ms totalt · 3 externa anrop · v20260731065814-full.4bcf49fe
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
130 ms — hämta tråd, inlägg och bilagor (db)