首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >403在lighttpd中使用php

403在lighttpd中使用php
EN

Ask Ubuntu用户
提问于 2016-06-10 20:10:21
回答 1查看 903关注 0票数 0

ubuntu 16.0.4LTS,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)

“发光状态”显示

代码语言:javascript
运行
复制
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文件仍然正常工作。

我有点迷惑不解的地位声称莱特不活跃,但lighty出现在"ps辅警“,它显然是工作.只是不使用php (或cgi/fpm)

这不是真正的机器,而是虚拟机,这有什么区别吗?我怀疑。

EN

回答 1

Ask Ubuntu用户

发布于 2016-06-10 20:51:50

  • 我没有提到我还启用了simple和ssl,后者完全杀死了lighty。
  • 在禁用任何模块后,显然强制重新加载似乎没有真正的工作。我想有一个更清洁的方法,但重新启动是唯一对我有效的今天。
  • 只是想知道为什么在之前的尝试中,html文件确实起作用,但没有php脚本。
票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/785449

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档