php Setup For nginx

Virtual host definition:

location / {
  try_files $uri $uri/ =404;
}
location ~ \.php$ {
  try_files $uri =404;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include fastcgi_params;
  fastcgi_pass unix:/var/run/php5-fpm.sock;
  fastcgi_max_temp_file_size 0;
}

NOTE: change version of sock file to match version of php installed.

tips/nginx_php_setup.txt · Last modified: 2023-08-06 19:12 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki