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

apache2不活动
EN

Ask Ubuntu用户
提问于 2018-04-05 11:22:05
回答 1查看 1.5K关注 0票数 0

错误是什么?请给我完整的解决方案!谢谢)

代码语言:javascript
复制
sudo service apache2 status

 apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: inactive (dead) since Бс 2018-04-05 16:53:39 +06; 5s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5334 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 5317 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

Сәу 05 16:53:39 moldir systemd[1]: Starting LSB: Apache2 web server...
Сәу 05 16:53:39 moldir apache2[5317]:  * Starting Apache httpd web server apache2
Сәу 05 16:53:39 moldir apache2[5317]: Segmentation fault (core dumped)
Сәу 05 16:53:39 moldir apache2[5317]: Action 'start' failed.
Сәу 05 16:53:39 moldir apache2[5317]: The Apache error log may have more information.
Сәу 05 16:53:39 moldir apache2[5334]:  * Stopping Apache httpd web server apache2
Сәу 05 16:53:39 moldir apache2[5334]:  *
Сәу 05 16:53:39 moldir systemd[1]: Started LSB: Apache2 web server.
EN

回答 1

Ask Ubuntu用户

发布于 2018-04-05 11:45:06

这可能不是一个完整的答案(虽然作为评论发布太长),因为您所得到的错误是分段错误,如果没有更多的信息,很难找出问题。

但是,我过去遇到这个问题的所有时候都是由于一些模块之间的冲突而导致的。

通过运行以下命令,可以检查在Apache上启用了哪些模块:

代码语言:javascript
复制
apache2ctl -M

但是,这个命令很可能会中断,并给出以下输出:

代码语言:javascript
复制
Segmentation fault (core dumped)
Action '-M' failed.
The Apache error log may have more information.

如果是这样,则需要使用以下命令:

代码语言:javascript
复制
ls /etc/apache2/mods-enabled/

确保没有会相互冲突的mods,例如php5.6php7.0,或者mpm_eventmpm_prefork

若要禁用它们,请使用a2dismod <module_name>命令。例如:

代码语言:javascript
复制
sudo a2dismod php5.6
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1022229

复制
相关文章

相似问题

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