Skip to content

Instantly share code, notes, and snippets.

@michaellouieloria
Created October 8, 2014 05:37
Show Gist options
  • Save michaellouieloria/8a2066e05499614e7892 to your computer and use it in GitHub Desktop.
Save michaellouieloria/8a2066e05499614e7892 to your computer and use it in GitHub Desktop.
Nginx 1.6.2 breaking PHP site solution
http://superuser.com/questions/814726/error-install-nginx-version-1-6-2-in-ubuntu-14-04
add line
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
example:
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment