FastCGI: Where to put directives?

I’ve got my site running FastCGI and I have a need to change some of the default directives.

Example:

FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20

Where do I put these?

I’ve tried adding to the httpd.conf and fcgid.conf but they don’t appear to be taking affect.

Would the above examples appear in a php info file? If so they have not appeared after the changes and restarting httpd.

I should also note that this is on Centos.

Can someone please guide me on what files I need to modify to add some of the example directives above?

Thanks!

SR

Howdy,

On CentOS, you can add those to /etc/httpd/conf.d/fcgid.conf.

Those should take effect after restarting Apache.

If that doesn’t work – can you paste in your fcgid.conf contents?

However, you also may want to grep through the various Apache config files to make sure those don’t appear elsewhere.

-Eric

Hi Eric,

Thanks for the quick reply!

My fcgid.conf is empty. I added the following at the bottom of my httpd.conf

FcgidIdleTimeout 3600 FcgidProcessLifeTime 3600 FcgidIOTimeout 3600 FcgidBusyTimeout 3600

It appears to be working but the variables are not showing up in a phpinfo.php file I’ve created. Should these not appear under “cgi-fcgi” ?

Do you recommend I move the above over to the fcgid.conf ? Is the format correct or do I need to drop the ?

Thanks!

SR