Accidentally deleted /var/log/apache2 and now can't restart apache [closed]

隐身守侯 提交于 2019-12-03 14:20:59

Fixed!

sudo mkdir /var/log/apache2/
sudo touch /var/log/apache2/{access,error,other_vhosts_access,suexec}.log
sudo chown -R root:adm /var/log/apache2/
sudo chmod -R 750 /var/log/apache2
Reiner Gothe

No changes required. I have only added tmpfs /var/log/apache2 tmpfs defaults,noatime 0 0 in /etc/fstab. Then restart computer. And fix it on my Ubuntu 16.04.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!