Scientifc Linux / CentOS / RHEL and lighttpd | lighttpd doesn't start (SOLVED)
Just because lighttpd is so much faster (and less memory consuming) than the heavy weight Apache2 here's a small tutorial on how make it come up on Scietific Linux, CentOS ...
[root@heisdeadjim ~]# service lighttpd restart
Stopping lighttpd:[FAILED]
Starting lighttpd: 2011-01-27 23:15:24: (server.c.722) couldn't set 'max filedescriptors' Operation not permitted
[root@heisdeadjim ~]# semodule -DB
[root@heisdeadjim ~]# /etc/init.d/auditd restart
Stopping auditd:[ OK ]
Starting auditd:[ OK ]
[root@heisdeadjim ~]# /etc/init.d/lighttpd restart
Stopping lighttpd:[FAILED]
Starting lighttpd: 2011-01-27 23:17:46: (server.c.722) couldn't set 'max filedescriptors' Permission denied [FAILED]
[root@heisdeadjim ~]# grep lighttpd /var/log/audit/audit.log | audit2allow -M lighttpdmaxfds
[root@heisdeadjim ~]# semodule -i lighttpdmaxfds.pp
[root@heisdeadjim ~]# /etc/init.d/lighttpd start
Starting lighttpd:[ OK ]
[root@heisdeadjim ~]# /usr/sbin/semodule -B
DONE! Have fun!
- fl0's blog
- 2662 reads
Recent blog posts
- Virtual (robot) Flobi - Motion Capture Playback Demo
- LimeSurvey | Default Password Change | Redirect to login page [SOLVED]
- Lighttpd | Can't have more connections than fds/2: 1024
- Warp1337 Theme for you!
- OpenNI Java Wrapper Test | Ubuntu 11.10
- Web history with Screenshots and stuff | Web archive
- [Solved] Lighttpd Drupal 7 ImageCache | Images are broken | error.handler.404
- Ubuntu 11.10 Install freeze at start up | Geforce GTX 570 | It's not your SDD [SOLVED]
- Installed "Oneiric Ocelot" | Ubuntu 11.10 | Looks great | First impressions
- Import CA Certificate in Java Keystore | Input not an X.509 certificate [SOLVED]
What is Flattr ? Flattr is the worlds first social micro-payment system The idea had already been initiated in 2007, but the first release was in 2010 due to typical geeky laziness. Flattr was founded to help people share money, not just content. https://flattr.com/about

















Comments
How to have audit2allow installed on CentOS 6
Do not forget to run
yum install policycoreutils-pythonin order to have audit2allow setup on your computer. Depending on the initial configuration this tool may not be installed.Post new comment