IMHO.WS

IMHO.WS (https://www.imho.ws/index.php)
-   Веб-программирование (https://www.imho.ws/forumdisplay.php?f=29)
-   -   PHP: Premature end of script headers (https://www.imho.ws/showthread.php?t=97860)

P@ketik 27.12.2005 23:03

PHP: Premature end of script headers
 
Установил апач и ПХП. В конф Апача подключил ПХП так:
AddType application/x-httpd-php php phtml
ScriptAlias /_php_/ "C:/Server/PHP/"
Action application/x-httpd-php "/_php_/php.exe"
Кинул в локалхост phpmy admin, после чего при открытии в браузере выдает 500-ую ошибку:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, me@localhost 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.log и увидел такое:
[Tue Dec 27 21:31:47 2005] [error] [client 127.0.0.1] Premature end of script headers: php-win.exe, referer: http://localhost/phpMyAdmin/
[Tue Dec 27 21:31:47 2005] [error] [client 127.0.0.1] File does not exist: C:/Sites/home/localhost/www/favicon.ico, referer: http://localhost/phpMyAdmin/index.php
подскажите в чем тут проблемы?

BorLase 28.12.2005 00:39

попробуй прописать php-cgi.exe взамен php.exe

dr-evil 28.12.2005 01:19

лучше через модули попробуй,
+ содержимое скрипта бы

BorLase 28.12.2005 01:29

судя по добавленной репутации, проблема решилась :)

хотя подключить РНР как модуль действительно правильней


Часовой пояс GMT +4, время: 01:53.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.