Hello, Can anyone tell me how can i start lighttpd as root to increase the server.max-fds value ? According to the lighttpd documentation > http://redmine.lighttpd.net/wiki/lighttpd/Server.max-fdsDetails also, i don't understand what they means by : Changing this setting requires root permissions on startup ??? Thank you
Did you edit lighttpd.conf and set server.max-fds to a higher number? server.max-fds = 4096 or 8192 What is the output of ulimit -aH
Hi mate, I have this error when i edit the lighttpd.conf Starting web server: lighttpd2011-09-15 20:12:24: (server.c.889) can't have more connections than fds/2: 500 824 Tried also to modify : but always the same error...
You can place 4096 or 8192, sorry, didnt mean to confuse you, its one or the other. server.max-fds = 4096 server.max-connections = 2048 or server.max-fds = 8192 server.max-connections = 4096 Issue this command to raise the open files limit ulimit -n 8192 Then restart lighty
lol, cause it was mysterious. Tried with your two config but the same error : 1- Starting web server: lighttpd2011-09-16 02:57:09: (server.c.889) can't have more connections than fds/2: 2048 824 2- Starting web server: lighttpd2011-09-16 02:58:47: (server.c.889) can't have more connections than fds/2: 4096 824 but there is a changes with your command > ulimit -n 8192 I think the problem comes cause lighttpd is started as www-data, we need to start it as root according the documentation but how :/
Try adding the following to /etc/security/limits.conf www-data soft nofile 4096 www-data hard nofile 8192 reboot it.
Same result Anthony I'm totally lost in addition to the doc lighttpd is not so clear as that, they say need to start lighttpd as root, but how to do that they do not say
It shouldnt be started as root anyways. server.max-fds = 256 server.max-connections = 128 Restart lighty, do you get the warning message with those settings?
With this seting it's okay but it's something else in the errog log, i have a large site with generally 500-600 users online. But what do you mean by : It shouldnt be started as root anyways ? Lighttpd doc it's wrong ?
You shouldnt run any web server as root, apache, light, nginx or otherwise. server.max-fds = 8192 server.max-connections = 4096 server.max-worker = 4 What results does that yield?
being new in linux, that's what I say by reading the doc lighttpd, because I read somewhere that you should never run a program as root. And lighty tell to run it as root. 1- Starting web server: lighttpd2011-09-16 19:05:02: (server.c.889) can't have more connections than fds/2: 4096 824
Change /etc/security/limits.conf to this: * soft nofile 4096 * hard nofile 8192 What are the current settings for the fastcgi conf?
Same : 1- Starting web server: lighttpd2011-09-16 19:05:02: (server.c.889) can't have more connections than fds/2: 4096 824 The config for fastcgi is :
Dont make much sense, without further investigation of the server, not sure why its happening at this point.