Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Configuring Lighttpd
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Configuring Lighttpd

xur17xur17 Member
edited March 2012 in General

I know this has been asked a bunch of times, but I have been researching it for a few hours, and I am still confused.

I am running lighttpd, php5, and mysql on a 128mb vps. I'm trying to configure it to stay under 128mb of ram, and I am confused by some of the settings in lighttpd:
-What is the purpose of "max-procs"? I know this sets the number of parent processes, and then each of these spawns "PHP_FCGI_CHILDREN" children, but why would I ever want to set this to a number higher than one? It just seems to use more ram. Is it fine to just set max-procs to 1, and PHP_FCGI_CHILDREN to 2?
-What's the purpose of PHP_FCGI_MAX_REQUESTS? This is how many requests occur before the php processes respawn (helps to reduce memory usage). Does setting this to a low value cause issues?

Thanks!

Comments

  • RophRoph Member

    Is there any reason you're using lighttpd instead of nginx? Enjoying your memory creeping up?

  • @xur17 try cgi instead of fastcgi.

  • xur17xur17 Member

    @Roph I'm using lighttpd since I have used it in the past, and am used to the configuration settings for it. Is nginx a lot better for ram useage?

    @OneTwo I'm not sure what you are referring to here. You are saying to switch php from fastcgi to cgi? What would this change?

  • @xur17 yes, change from fastcgi to cgi. (supposing you don't get a lot of traffic, you don't need fastcgi).

    nginx is not better in memory usage.

Sign In or Register to comment.