首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >archlinux灯

archlinux灯
EN

Stack Overflow用户
提问于 2015-12-20 09:21:03
回答 1查看 757关注 0票数 1

有一个关于如何在archlinux上设置lamp的不错的教程

/etc/httpd/conf/httpd.conf中包含以下行之后:

# Use for PHP 5.x: LoadModule php5_module modules/libphp5.so AddHandler php5-script php Include conf/extra/php5_module.conf

我在sudo systemctl restart httpd上得到了折页错误

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

如果我评论行LoadModule php5_module modules/libphp5.so,我就不会得到更多的错误,而且还会收到php它不能工作。有人能帮忙吗?

其他似乎遇到了同样的问题。

systemctl status httpd.service的输出是:

* httpd.service - Apache Web Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Sun 2015-12-20 11:12:51 EET; 5h 0min ago Process: 2550 ExecStop=/usr/bin/apachectl graceful-stop (code=exited, status=1/FAILURE) Process: 3049 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE) Main PID: 2390 (code=exited, status=0/SUCCESS)

apachectl configtest的输出是:

[Mon Dec 21 00:46:28.514204 2015] [:crit] [pid 10566:tid 139771165026176] Apache AH00013: Pre-configuration failed

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-12-20 23:52:49

根据优秀的拱维基,这是一个已知问题,需要进行小的配置更改。

  1. 请评论有关mpm_event_module的行: #LoadModule mpm_event_module模块/mod_mpm_vent.so
  2. 取消评论关于mpm_prefork_module的行: LoadModule mpm_prefork_module模块/mod_mpm_prefork.so

下一次,我建议使用Archlinux wiki,因为它通常是最新的而不是博客文章。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34379544

复制
相关文章

相似问题

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