403 с php в lighttpd

сервер человечности 16.0.4 LTS, MySQL, lighttpd, php, phpMyAdmin

следовавший инструкции в https://www.howtoforge.com/tutorial/installing-lighttpd-with-php7-php-fpm-and-mysql-on-ubuntu-16.04-lts/

работа файлов HTML, php файлы работают через cli; но даже локальный http доступ к любому сценарию PHP бросает "403, Запрещенные" в меня, какие модули я включаю или отключаю в lighty.

полномочия в 664 (мне нужно это вместо 644),

"шоу" состояния lighttpd

lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fr 2016-06-10 21:43:12 CEST; 50s ago
  Process: 29194 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
  Process: 29187 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 29194 (code=exited, status=255)

Jun 10 21:43:12 mysrv systemd[1]: Starting Lighttpd Daemon...
Jun 10 21:43:12 mysrv lighttpd[29187]: Syntax OK
Jun 10 21:43:12 mysrv systemd[1]: Started Lighttpd Daemon.
Jun 10 21:43:12 mysrv lighttpd[29194]: 2016-06-10 21:43:12: (network.c.537) SSL: BIO_read_filename('/etc/lighttpd/server.pem') failed
Jun 10 21:43:12 mysrv systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Jun 10 21:43:12 mysrv systemd[1]: lighttpd.service: Unit entered failed state.
Jun 10 21:43:12 mysrv systemd[1]: lighttpd.service: Failed with result 'exit-code'

но файлы HTML все еще хорошо работают.

Я немного озадачен, что состояние утверждает, что lighttpd не был активен, все же lighty обнаруживается в "PS aux", и это очень, по-видимому, работает... просто не с php (или cgi/fpm)

Это имеет значение, что это не реальная машина, но VM?Вряд ли.

0
задан 10 June 2016 в 23:10

1 ответ

  • I had not mentioned that I also had simple-vhost and ssl enabled, the latter of which kills lighty completely.
  • after disabling any module, apparently force-reload does not seem to really work. I guess that there is a cleaner way, but rebooting was the only thing that worked for me today.
  • just wonder why, in the previous attempts, html files did work but not php scripts.
0
ответ дан 23 December 2019 в 17:21

Другие вопросы по тегам:

Похожие вопросы: