Blank page (500 error) with nginx and php-fpmHow do I get PHP 5.3.3 working with Nginx on CentOS 5.5?Blank Page: wordpress on nginx+php-fpmphpmyadmin having problems on nginx and php-fpm on RHEL 6nginx php5-fpm path_info urls and root locationPHP app breaks on Nginx, but works on ApacheNGINX don't parse .php5 as .phpLaravel 4.1 on nginx routes error 404CodeIgniter nginx rewrite rules for i8ln URL'sHow to configure nginx to serve one site from two different document root and using different php depending on URLlimit_req_zone for the whole PHP

Must a CPU have a GPU if the motherboard provides a display port (when there isn't any separate video card)?

Can a 40amp breaker be used safely and without issue with a 40amp device on 6AWG wire?

How to address players struggling with simple controls?

Can artificial satellite positions affect tides?

Is it a good security practice to force employees hide their employer to avoid being targeted?

What is the difference between state-based effects and effects on the stack?

Approach sick days in feedback meeting

Do items with curse of vanishing disappear from shulker boxes?

Will users know a CardView is clickable

What is the color associated with lukewarm?

Should I email my professor to clear up a (possibly very irrelevant) awkward misunderstanding?

Is it possible to install Firefox on Ubuntu with no desktop enviroment?

How do you translate “talk shit”?

mathrm in LaTeX

100-doors puzzle

How to avoid offending original culture when making conculture inspired from original

I sent an angry e-mail to my interviewers about a conflict at my home institution. Could this affect my application?

Converting 3x7 to a 1x7. Is it possible with only existing parts?

Jam with honey & without pectin has a saucy consistency always

Can an opamp have its own voltage regulator?

My players want to use called-shots on Strahd

Should I move out from my current apartment before the contract ends to save more money?

Is there a term for someone whose preferred policies are a mix of Left and Right?

What does the output current rating from an H-Bridge's datasheet really mean?



Blank page (500 error) with nginx and php-fpm


How do I get PHP 5.3.3 working with Nginx on CentOS 5.5?Blank Page: wordpress on nginx+php-fpmphpmyadmin having problems on nginx and php-fpm on RHEL 6nginx php5-fpm path_info urls and root locationPHP app breaks on Nginx, but works on ApacheNGINX don't parse .php5 as .phpLaravel 4.1 on nginx routes error 404CodeIgniter nginx rewrite rules for i8ln URL'sHow to configure nginx to serve one site from two different document root and using different php depending on URLlimit_req_zone for the whole PHP






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am hosting more than one domain on the same server. I have the following configuration for nginx:



server 
listen 80;

root /var/www/mydomain.com;
index index.php index.html index.htm;

server_name mydomain.com;

location /
try_files $uri $uri/ =404;


location ~ .php$
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;




Which works with all the domains I have on the server. However, today, I added a new domain which I transferred its content from another server (I transferred from shared hosting into a VPS). And after adjusting the DNS, moving the files and migrating the database and finishing everything up, the new domain doesn't work. It just returns 500 error code. No log messages were shown in nginx's log files.










share|improve this question
























  • If no error messages appear in the log file increase the log level.

    – Gerald Schneider
    Jun 16 '17 at 6:38

















1















I am hosting more than one domain on the same server. I have the following configuration for nginx:



server 
listen 80;

root /var/www/mydomain.com;
index index.php index.html index.htm;

server_name mydomain.com;

location /
try_files $uri $uri/ =404;


location ~ .php$
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;




Which works with all the domains I have on the server. However, today, I added a new domain which I transferred its content from another server (I transferred from shared hosting into a VPS). And after adjusting the DNS, moving the files and migrating the database and finishing everything up, the new domain doesn't work. It just returns 500 error code. No log messages were shown in nginx's log files.










share|improve this question
























  • If no error messages appear in the log file increase the log level.

    – Gerald Schneider
    Jun 16 '17 at 6:38













1












1








1








I am hosting more than one domain on the same server. I have the following configuration for nginx:



server 
listen 80;

root /var/www/mydomain.com;
index index.php index.html index.htm;

server_name mydomain.com;

location /
try_files $uri $uri/ =404;


location ~ .php$
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;




Which works with all the domains I have on the server. However, today, I added a new domain which I transferred its content from another server (I transferred from shared hosting into a VPS). And after adjusting the DNS, moving the files and migrating the database and finishing everything up, the new domain doesn't work. It just returns 500 error code. No log messages were shown in nginx's log files.










share|improve this question
















I am hosting more than one domain on the same server. I have the following configuration for nginx:



server 
listen 80;

root /var/www/mydomain.com;
index index.php index.html index.htm;

server_name mydomain.com;

location /
try_files $uri $uri/ =404;


location ~ .php$
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;




Which works with all the domains I have on the server. However, today, I added a new domain which I transferred its content from another server (I transferred from shared hosting into a VPS). And after adjusting the DNS, moving the files and migrating the database and finishing everything up, the new domain doesn't work. It just returns 500 error code. No log messages were shown in nginx's log files.







nginx php-fpm 500-error






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 16 '17 at 5:27









SDsolar

1411111




1411111










asked Jun 16 '17 at 0:54









MadnoMadno

1439




1439












  • If no error messages appear in the log file increase the log level.

    – Gerald Schneider
    Jun 16 '17 at 6:38

















  • If no error messages appear in the log file increase the log level.

    – Gerald Schneider
    Jun 16 '17 at 6:38
















If no error messages appear in the log file increase the log level.

– Gerald Schneider
Jun 16 '17 at 6:38





If no error messages appear in the log file increase the log level.

– Gerald Schneider
Jun 16 '17 at 6:38










1 Answer
1






active

oldest

votes


















0














What drove me mad is that I am using the same configuration with all my websites and domains on the same server. It works with all of them except this one, although they are completely matched.



There are other cases on ServerFault where the problem may be from fastcgi parameters or php-fpm. But in my cause, it was awkwardly ridiculous.



It was because of the hidden .htaccess file which I transferred from my holder hosting. It contained rules which doesn't work with the new VPS. I removed the file, and Voala! Works like a charm.



(I can't deny that I have been insulting myself for hours about how I am the worst sysadmin in the world).






share|improve this answer


















  • 4





    This may be a silly question, but I thought Nginx doesn't read or use Apache .htaccess files. I'm surprised that solution worked.

    – Tim
    Jun 16 '17 at 1:20











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f856116%2fblank-page-500-error-with-nginx-and-php-fpm%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














What drove me mad is that I am using the same configuration with all my websites and domains on the same server. It works with all of them except this one, although they are completely matched.



There are other cases on ServerFault where the problem may be from fastcgi parameters or php-fpm. But in my cause, it was awkwardly ridiculous.



It was because of the hidden .htaccess file which I transferred from my holder hosting. It contained rules which doesn't work with the new VPS. I removed the file, and Voala! Works like a charm.



(I can't deny that I have been insulting myself for hours about how I am the worst sysadmin in the world).






share|improve this answer


















  • 4





    This may be a silly question, but I thought Nginx doesn't read or use Apache .htaccess files. I'm surprised that solution worked.

    – Tim
    Jun 16 '17 at 1:20















0














What drove me mad is that I am using the same configuration with all my websites and domains on the same server. It works with all of them except this one, although they are completely matched.



There are other cases on ServerFault where the problem may be from fastcgi parameters or php-fpm. But in my cause, it was awkwardly ridiculous.



It was because of the hidden .htaccess file which I transferred from my holder hosting. It contained rules which doesn't work with the new VPS. I removed the file, and Voala! Works like a charm.



(I can't deny that I have been insulting myself for hours about how I am the worst sysadmin in the world).






share|improve this answer


















  • 4





    This may be a silly question, but I thought Nginx doesn't read or use Apache .htaccess files. I'm surprised that solution worked.

    – Tim
    Jun 16 '17 at 1:20













0












0








0







What drove me mad is that I am using the same configuration with all my websites and domains on the same server. It works with all of them except this one, although they are completely matched.



There are other cases on ServerFault where the problem may be from fastcgi parameters or php-fpm. But in my cause, it was awkwardly ridiculous.



It was because of the hidden .htaccess file which I transferred from my holder hosting. It contained rules which doesn't work with the new VPS. I removed the file, and Voala! Works like a charm.



(I can't deny that I have been insulting myself for hours about how I am the worst sysadmin in the world).






share|improve this answer













What drove me mad is that I am using the same configuration with all my websites and domains on the same server. It works with all of them except this one, although they are completely matched.



There are other cases on ServerFault where the problem may be from fastcgi parameters or php-fpm. But in my cause, it was awkwardly ridiculous.



It was because of the hidden .htaccess file which I transferred from my holder hosting. It contained rules which doesn't work with the new VPS. I removed the file, and Voala! Works like a charm.



(I can't deny that I have been insulting myself for hours about how I am the worst sysadmin in the world).







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 16 '17 at 0:54









MadnoMadno

1439




1439







  • 4





    This may be a silly question, but I thought Nginx doesn't read or use Apache .htaccess files. I'm surprised that solution worked.

    – Tim
    Jun 16 '17 at 1:20












  • 4





    This may be a silly question, but I thought Nginx doesn't read or use Apache .htaccess files. I'm surprised that solution worked.

    – Tim
    Jun 16 '17 at 1:20







4




4





This may be a silly question, but I thought Nginx doesn't read or use Apache .htaccess files. I'm surprised that solution worked.

– Tim
Jun 16 '17 at 1:20





This may be a silly question, but I thought Nginx doesn't read or use Apache .htaccess files. I'm surprised that solution worked.

– Tim
Jun 16 '17 at 1:20

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f856116%2fblank-page-500-error-with-nginx-and-php-fpm%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?