Resolved : Starting lighttpd: Time: (server.c.722) couldn’t set ‘max filedescriptors’ Operation not permitted in CentOS / RHEL/ FEDORA Linux

Solution

[root@server home] service lighttpd restart
Stopping lighttpd:[FAILED]
Starting lighttpd: 2013-06-03 00:40:24: (server.c.722) couldn't set 'max filedescriptors' Operation not permitted

[root@server home] semodule -DB

[root@server home] /etc/init.d/auditd restart
Stopping auditd: [ OK ]
Starting auditd: [ OK ]

[root@server home] grep lighttpd /var/log/audit/audit.log | audit2allow -M lighttpdmaxfds

[root@server home] semodule -i lighttpdmaxfds.pp

[root@server home] /etc/init.d/lighttpd start

Starting lighttpd: [ OK ]





Alertivately you can

[root@server home] grep lighttpd /var/log/audit/audit.log | audit2why -e
[root@server home] setsebool -P httpd_setrlimit 1
[root@server home] service auditd restart

Leave a Reply

Your email address will not be published.