Advertisement
krot

nginx php-fpm display_errors=on

Mar 18th, 2020
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. location ~ \.php$ {
  2. fastcgi_pass unix:/var/run/php-fpm/php72-php-fpm.sock;
  3. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  4. fastcgi_intercept_errors on;
  5.  
  6. fastcgi_param PHP_VALUE "display_errors=on \n display_startup_errors=on \n error_reporting = E_ALL \n error_log = /var/log/nginx/app.error.log";
  7. include fastcgi_params;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement