apache2.2.2 +nginx + php5 debian 7

Автор Sergey K., 03 сентября 2013, 16:12:59

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

Sergey K.

Здравствуйте

Прошу помощи
Имею систему Debian 7 консоль
Установил апач nginx php
апач работает
при проверке php кода выдает ошибку

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] 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.

вот логи из апача

sudo cat /var/log/apache2/error.log
[Tue Sep 03 11:07:42 2013]  [client *] SoftException in Application.cpp:299: Script "/home/webmaster/oceandoors.ru/www/test.php" resolving to "/home/webmaster/oceandoors.ru/www/test.php" not within configured docroot, referer: www.oceandoors.ru/
[Tue Sep 03 11:07:42 2013]  [client *] Premature end of script headers: test.php, referer: www.oceandoors.ru/

также не могу установить proftpd, запуск проходит но 21 порт не доступен почему то. Может его как то нужно отдельно запускать?

спасибо

yura_n

Цитата: Sergey K. от 03 сентября 2013, 16:12:59также не могу установить proftpd, запуск проходит но 21 порт не доступен почему то. Может его как то нужно отдельно запускать?
А как вы его запускаете?

Sergey K.

ну после изменения конфига
командой рестарт
sudo /etc/init.d/proftpd restart

yura_n

Попробуйте остановить демон:

/etc/init.d/proftpd stop

Затем запустите сервер таким образом (от рута):

proftpd -n

И посмотрите какими ошибками он будет сыпать.

Sergey K.

при запуске в обычном режиме Starting ftp server: proftpdoceandoors.ru proftpd[1660]: mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled


/etc/proftpd$ sudo /etc/init.d/proftpd -n
Usage: /etc/init.d/proftpd {start|status|force-start|stop|force-stop|reload|restart|force-reload|check-config}

yura_n

Цитата: Sergey K. от 03 сентября 2013, 16:40:22sudo /etc/init.d/proftpd -n
Не /etc/init.d/proftpd -n,
а как я написал выше.

Sergey K.

elda@oceandoors:/etc/init.d$ proftpd -n
-bash: proftpd: command not found
elda@oceandoors:/etc/init.d$ ./proftpd -n
Usage: /etc/init.d/proftpd {start|status|force-start|stop|force-stop|reload|restart|force-reload|check-config}
elda@oceandoors:/etc/init.d$

yura_n

Цитата: Sergey K. от 03 сентября 2013, 16:52:09/etc/init.d/proftpd {start|status|force-start|stop|force-stop|reload|restart|force-reload|check-config}
Вы читать умеете?

proftpd -n

Не

/etc/init.d/proftpd -n

Sergey K.

ceandoors.ru proftpd[3430]: mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled
oceandoors.ru proftpd[3430] localhost: ProFTPD 1.3.4a (maint) (built Tue Apr 16 2013 03:04:02 UTC) standalone mode STARTUP

yura_n

Цитата: Sergey K. от 03 сентября 2013, 17:23:20mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled
Ответ прямо с сайта proftpd (http://www.proftpd.org/docs/howto/Memcache.html):
Цитировать
Question: Why do I see the following error when proftpd starts up?

mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled 

Answer: This message means that your proftpd server has mod_tls_memcache built and loaded, but your proftpd server was not built with memcache support (i.e. the --enable-memcache configure option was not used when compiling proftpd).
Суть в том, что модуль mod_tls_memcache есть, а поддержки memcache в proftpd (собран без нее) нет. Попробуйте упростить конфиг proftpd, отключив этот модуль.

Sergey K.

так этот модуль у меня не включен в конфиге

yura_n

Цитата: Sergey K. от 03 сентября 2013, 17:46:02так этот модуль у меня не включен в конфиге
Выложите конфиг.

Sergey K.

#12
ошибся, отключил модуль в modules.conf
теперь вот что пишет
oceandoors.ru proftpd[18866] localhost: Failed binding to 0.0.0.0, port 21: Address already in use
oceandoors.ru proftpd[18866] localhost: Check the ServerType directive to ensure you are configured correctly.
поменял на inetd
теперь пишет
root@oceandoors:/etc/proftpd# proftpd -n
oceandoors.ru proftpd[18879] localhost: fatal: Socket operation on non-socket

спасибо сервак запустился
фтп порт открыт
но не коннектится теперь :(
спрашивает имя юзера и зависает

yura_n

Цитата: Sergey K. от 03 сентября 2013, 17:58:49поменял на inetd
Это не нужно. Верните standalone, попробуйте изменить порт, может действительно чем-то занят. Если заработает, то ищите что у вас висит на 21 порту.

Sergey K.

#14
заработало на на вводе логина зависает
и ещё вопрос за что отвечает memcache и нужен ли он?

Сообщение объединено: 03 сентября 2013, 18:05:28

всё заработало! спасибо!!! апо php не сможете помочь