Fixing the Apache Error: Unable to open logs httpd CentOS

Fixing the Apache Error: Unable to open logs httpd CentOS

When managing your Apache server, you may come across this error that reads:

Code:
Apache Error: Unable to Open Logs
It usually occurs when restarting Apache. You can find this error in the /var/log/httpd/error_log file.

To fix this error, you can execute this command:

Code:
echo $ulimi
If it returns a blank value or low value, then execute this command:

Code:
ulimit -n 65536
With ulimit, you can check, set, and limit the usage of the server resources. If a user or application is consuming excessive resources, you can set a limit for them. In the above case, by setting the value to 65536, you can resolve this error in CentOS.

That’s it. Now you shouldn’t get this error message again.
Author
kumkumsharma
Views
3,381
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from kumkumsharma

Top