How to add fastcgi support to nginx?

Alex Jolig asked:

I’m trying to setup roundcube in my server with nginx on CentOS.

this tutorial says:

Add the following to the bottom of /etc/nginx/fastcgi_params:

# Roundcube config
fastcgi_keep_conn on;
fastcgi_split_path_info       ^(.+.php)(.*)$;
fastcgi_param PATH_INFO       $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED    $document_root$fastcgi_path_info;

But I’m getting this error trying to restart nginx service

unknown directive "fastcgi_keep_conn" in /etc/nginx/fastcgi_params:26

I googled it and this answer says:

seems that nginx was built without fastcgi support

But I can’t figure out how to make nginx supports fastcgi

Anyone can tell me how?

My answer:

The documentation states:

This directive appeared in version 1.1.4.

With version 1.0.15, you won’t be able to use it.

You can either upgrade nginx, or omit the directive.

View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.