hannesschulze / optimizer

Find out what's eating up your system resources and delete unnecessary files from your disk.
GNU General Public License v3.0
50 stars 11 forks source link

Apache won't start after cleaning logs #81

Closed drom98 closed 4 years ago

drom98 commented 4 years ago

After cleaning package/application logs apache server won't start giving this error message: Starting The Apache HTTP Server... No such file or directory: AH02291: Cannot access directory '/var/log/apache2/' for main error log The problem is fixed after creating that directory again.

hannesschulze commented 4 years ago

Some apps unfortunately seem to depend on specific paths in the log-folder to exist. Please note that this only deleted the logs (as specified in the selection) and not other important data, so the workaround for now is actually creating the directory again – I'm not really sure what's the best way to work around this, either a blacklist or a whitelist. For now, I think this should be discussed in #65; I'll mark this issue as a duplicate

tskxz commented 3 years ago

Just create and giving permisions ➜ ~ sudo mkdir -p /var/log/apache2/ ➜ ~ sudo chmod -R 744 /var/log/apache2/