![](/img/trans.png)
[英]The apache2 configtest failed. Segmentation fault (core dumped) Action 'configtest' failed
[英]apache2 cannot be restarted :Action 'start' failed
我有一個Linux服務器,其中包含許多位於vhosts下的網站,一旦刪除了alt站點,apache2不會重啟,並在錯誤日志中顯示此消息:
#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
如何停止該操作,以便啟動我的apache2
您應該修改apache配置,例如在conf.d /中,所有與您的舊網站相關的配置,尤其是對於錯誤日志(請在conf文件apache2.conf,httpd中的某個位置查找訪問日志和錯誤日志指令規范)。 conf,啟用站點的功能,mods或它的位置/位置)。
要解決此錯誤,您需要使用同一端口停止其他進程。 在某些情況下是nginx。 你可以阻止它
sudo /etc/init.d/nginx停止
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.