简体   繁体   中英

apache2 cannot be restarted :Action 'start' failed

I have a linux server that contains many websites under vhosts, once I deleted an alt site the apache2 coud not be restarted indecating this message in the error log:

  #eror log
(2)No such file or directory: apache2: could not open error log file /var/www/vhosts/deleted_Site/logs/error.log.
Unable to open logs

How can I stop that so I can start my apache2

您应该修改apache配置,例如在conf.d /中,所有与您的旧网站相关的配置,尤其是对于错误日志(请在conf文件apache2.conf,httpd中的某个位置查找访问日志和错误日志指令规范)。 conf,启用站点的功能,mods或它的位置/位置)。

To resolve this error, you need to stop other process using same port. In some of cases it is nginx. you can stop it

sudo /etc/init.d/nginx stop

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM