Correct nginx config for PHP5 fastCGI

It’s surprising how much incorrect informations  are available on web for this topic.   I was struggling to get correct configuration for simpleSAMLphp package (on Ubuntu 14.04). This is finally correct config (inside server section):

Key insight is to set additionally two CGI parameters SCRIPT_FILENAME and PATH_INFO,   but after  include fastcgi_params (this configuration also sets SCRIPT_FILENAME).

Also I had to change php.ini:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">