Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Скриптовые языки программирования > PHP
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 17.12.2012, 12:27   #1
sir.andrey
Форумчанин
 
Регистрация: 06.12.2009
Сообщений: 380
Радость Локальный сервер

Здравствуйте.
Пользуюсь локальным сервером от winginx, и возникла такая проблема:
Почему то если главная страница index.html, то все работает, если index.php, то нет, выдает ошибку:
Цитата:
502 Bad Gateway
Хотя наверное месяц назад все работало.
Подскажите пожалуйста, в чем проблема.

error.log имеет последние такие записи:
Цитата:
13 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rbt"
2012/12/17 13:03:29 [error] 78340#78660: *13 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rbt"
2012/12/17 13:03:42 [error] 78340#78660: *21 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:07:32 [error] 76644#79536: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:07:32 [error] 76644#79536: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:07:33 [error] 76644#79536: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:07:33 [error] 76644#79536: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:39:48 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:39:49 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:39:49 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:39:50 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:40:12 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:40:13 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:40:13 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:40:14 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:40:14 [error] 87708#78312: *1 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "rht"
2012/12/17 13:40:19 [error] 87708#78312: *13 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:81"
2012/12/17 15:10:17 [error] 87708#78312: *15 upstream sent unsupported FastCGI protocol version: 100 while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost:81"
Даже на localhost:81 не заходит
sir.andrey вне форума Ответить с цитированием
Старый 17.12.2012, 16:07   #2
Mortimoro
Форумчанин
 
Регистрация: 03.12.2010
Сообщений: 334
По умолчанию

он у тебя ругается на FastCGI, который очевидимо неправильно настроен. В настройках хостинга надо сменить "PHP как FastCGI" на "PHP как модуль Apache"... или правильно настроить FastCGI
Mortimoro вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Как проверить что локальный сервер работает Kreadlling PHP 4 02.05.2011 20:53
Локальный прокси сервер... W0LF Работа с сетью в Delphi 3 18.04.2010 21:03
Как вставить свое видео на локальный сервер zajigateli HTML и CSS 4 23.05.2009 02:23
Запустить локальный сервер ? PowerAA Работа с сетью в Delphi 0 07.09.2008 02:45