Moving your FastCgiIpcDir

November 11, 2010 under Main

The default location for FastCGI to store its sockets on CentOS 5 is /var/log/httpd/fastcgi

The problem here is that you need to open up the permissions on /var/log/httpd from the default 700 to 755 in order for this to work. Should yum decide to update httpd for you, it may reset this, causing a 500 Internal Server Error on your Lasso sites. We learned this the hard way when started doing this one morning.

On my newest L9 server, I’ve moved the FastCGI dir to /var/run/fastcgi

This seems like an appropriate place to put it. You can change it with the apache directive:

FastCgiIpcDir /var/run/fastcgi

NB: make sure you specify the User and Group apache runs under BEFORE this directive. In the default httpd.conf this is specified AFTER the Include conf.d/*.conf directive, and this was causing me to get a permission denied error when trying to start apache. Moving the User and Group directives up above the Include directive fixed this for me.

It’s important to have permissions of 700 on the FastCgiIpcDir as this is where the socket files for connecting to the FastCGI instance live.

I’ve now reset /var/log/httpd to the default 700 and it is working for me.

comments: Closed tags:

FastCGI rocks

October 14, 2010 under Main

Decided today to do a short presentation on FastCGI at Eurolasso. I’ve whipped up a very cool demo that I think people are going to like!

comments: Closed tags: