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;
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
add a comment |
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
If no error messages appear in the log file increase the log level.
– Gerald Schneider
Jun 16 '17 at 6:38
add a comment |
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
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
nginx php-fpm 500-error
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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).
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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).
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
add a comment |
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).
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
add a comment |
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).
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).
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
If no error messages appear in the log file increase the log level.
– Gerald Schneider
Jun 16 '17 at 6:38