Php-fpm 500 Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have 500 internal server error nginx fix Meta Discuss the workings and policies of this site About Us
Nginx 500 Internal Server Error No Log
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Nginx Php 500 Internal Server Error
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just
Nginx Internal Server Error 500
like you, helping each other. Join them; it only takes a minute: Sign up Docker php-fpm/nginx set-up: php-fpm throwing blank 500, no error logs up vote 2 down vote favorite Git repo of project: https://github.com/tombusby/docker-laravel-experiments (HEAD at time of writing is 823fd22). Here is my docker-compose.yml: nginx: image: nginx:stable volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro volumes_from: - php links: nginx 500 error page not working - php:php ports: - 80:80 php: image: php:5.6-fpm volumes: - ./src:/var/www/html expose: - 9000 Into src/ I've created a fresh laravel project. This all functions correctly if I swap out index.php for one with a basic echo "hello world"; and if I use echo "called";exit(); I can identify that part of laravel's index.php does get executed. It dies at line 53: $response = $kernel->handle( $request = Illuminate\Http\Request::capture() ); I have no idea why this happens, and I've tried using docker exec -it
have one accepted answer. Are you sure you want to replace the current answer with this one? Yes, I'm sure. Changed your mind? You previously marked this 500 internal server error nginx wordpress login answer as accepted. Are you sure you want to unaccept it? Yes, nginx http 500 I'm sure. Sign Up Log In submit Tutorials Questions Projects Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions fastcgi intercept errors Projects Meetups Main Site Sign Up Log In submit View All Results By: acirnici Subscribe Subscribed Share 0 php + nginx = 500 error, help fix please March 31, 2015 8.4k views http://stackoverflow.com/questions/37072843/docker-php-fpm-nginx-set-up-php-fpm-throwing-blank-500-no-error-logs Nginx PHP Hello. Followed the tutorial https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04 Wall went well. But when i try to run my project i get(nginx error.log) *16 rewrite or internal redirection cycle while internally redirecting to "/index.html" my server block: server { listen 80; root /var/www/project/public; index index.php index.html index.htm; server_name myip; location / { try_files $uri $uri/ /index.html; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; https://www.digitalocean.com/community/questions/php-nginx-500-error-help-fix-please location = /50x.html { root /var/www/project/public; } # pass the PHP scripts to FastCGI server listening on the php-fpm socket location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } 1 comment 0 acirnici March 31, 2015 Fixed the problem with: location / { try_files $uri $uri/ =404; rewrite ^/(.*)/$ /?page=$1 last; rewrite ^(.*[^/])$ $1/ permanent; } Log In to Comment Leave a Comment Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below. Log In to Comment 1 Answer 0 EpicCDN March 31, 2015 No idea what are you trying, but did you just made a rewrite to fix the loop? Also whats the point of this with an html file? location / { try_files $uri $uri/ /index.html; } Reply Log In to Comment Have another answer? Share your knowledge. Log In to Answer Related Questions Problem with Curl or Json (Debian 7.2, PHP 5.5 e etc) Upgraded to nginx 1.4.4 from 1.1.9 (and messed with Postfix) - now WordPress site is getting... Can't write/delete files using nginx +
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://unix.stackexchange.com/questions/191237/how-to-fix-an-unknown-internal-server-error-500-nginx-is-giving-me About Us Learn more about Stack Overflow the company Business Learn more about http://serverfault.com/questions/417102/nginx-not-logging-php-errors hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody internal server can ask a question Anybody can answer The best answers are voted up and rise to the top How to fix an unknown internal server error (500) Nginx is giving me? up vote 1 down vote favorite Nginx is giving me a 500 error that's driving me crazy. First of all I have a personalsite.conf archive inside /etc/nginx/conf.d/ where I have my server block. This is my internal server error server block configuration: server { listen 80; server_name personalsite.me; charset UTF-8; access_log /var/log/nginx/personalsite.access.log main; error_log /var/log/nginx/personalsite.error.log; root /usr/share/nginx/html/personalsite; index index.php index.html index.htm; error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html/; } location ~ \.php$ { try_files $uri =404; include fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } } Plus nginx user have its proper permissions asigned over /usr/share/nginx/html/personalsite/. The thing is Nginx is giving me a 500 error when I try to browse personalsite.me, and the funny thing is that I know that because I checked the personalsite.access.log and see it, because the brower just goes blank. By unknown reasons Nginx is unable to show me its 500 error page, properly declared in the server block as you can see. Another odd thing is that personalsite.error.log is in blank, it records nothing. Also I have that domain declared with its IP in my /etc/hosts archive. So I really have no idea what's happening here. Everything is running CentOS 7 over a Digital Ocean VPS. nginx share|improve this question edited Apr 27 at 18:24 Anthon 47.7k1462125 asked Mar 19 '15 at 15:10 Alain 3818 add a comment| 3 Answers 3
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Nginx not logging PHP errors up vote 4 down vote favorite 1 When accessing some PHP scripts on my website, I'm getting the dreaded 500 error message. I'd like to know what's wrong to fix it, but Nginx isn't logging any PHP errors in the log file I have specified. This is my server block: server { listen 80; server_name localhost; access_log /home/whitey/sites/localhost/logs/access.log; error_log /home/whitey/sites/localhost/logs/error.log error; root /home/whitey/sites/localhost/htdocs; index index.html index.php /index.php; location / { } location ~ \.php$ { fastcgi_pass unix:/tmp/phpfpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { expires max; } } Note that some PHP scripts work fine, and others don't. So there isn't a global problem with PHP, there's just something in these scripts that's causing Nginx to throw the 500 error. How can I get to the bottom of this? The only thing in error.log is an error about favicon.ico not being found. nginx 500-error logging php-fpm share|improve this question asked Aug 13 '12 at 18:30 James Linton 87225 Could you append a part of the error log? –Christopher Perrin Aug 13 '12 at 18:41 This is the entire error log: pastebin.com/re6AwNyL –James Linton Aug 13 '12 at 18:44 This is indeed not very helpful :-/ –Christopher Perrin Aug 13 '12 at 18:47 Related: stackoverflow.com/questions/8677493/… –Kzqai Jul 21 '15 at 16:55 add a comment| 6 Answers 6 active oldest votes up vote 4 down vote accepted You have to add the following to your php-fpm pool configurations: catch_workers_output = 1 You have to add this line to each defined pool! share|improve this answer answered Aug 20 '12 at 23:21 Fleshgrinder 1,931716 add a comment| up vote 1 down vote php-fpm throws everything in /var/log/php5-fpm.log or similar. share|improve this answer answered Aug 13 '12 at 18:37 erickzetta 38913 That log just shows this: [13-Aug-2012 20:15:54] NOTICE: fpm is running, pid 10599 [13-Aug-2012 20:15:54] NOTICE: