If you are unable to start apache in linux plesk server, and if you are getting the following error in error logs;
Unable to open logs.
First you need to verify if ulimit is set.
Try executing the command:
echo $ulimit
If it is blank or a low value, try executing the command:
ulimit -n 65536
This should fix the issue.
Showing: 1-1 of 1
Comments
03 Sep, 2008 | Brijesh - KBModerator
In order to make this change permanent we need to edit /etc/sysctl.conf and add following lines
fs.file-max = 65536
run the following command
# /sbin/sysctl -w fs.file-max=65536
As a general rules whenever you met with an error while restarting apache in a plesk server, please try to rebuild apache configuration files by running
# /usr/local/psa/admin/sbin/websrvmng -a -v