Why FastCGI+Nginx can't see the PHP settings?

0 like 0 dislike
8 views
Deployed on the server classic bunch of the Apache:8080+Nginx:80+FastCGI. In php when you access the scripts through port 80 no longer see your settings (load default). I tried to set the settings via php_value in .htaccess — still they focus not see.
And through 8080 port all settings are normally tightened.
Compare: http://clio.su/test.php vs. http://clio.su:8080/test.php (the parameter upload_max_filesize to test in php.ini exhibited 4M .htaccess 8M, default 2M)

What you need to correct in nginx.conf (httpd.conf) to php.ini also participated in the work of the ligaments using fastcgi? I feel that it solves the problem elegantly, but shoveled Yandex, I haven't found a solution.

PS: And still a passing question, too, is associated with the fastcgi. When using the php mail() function all mail is now sent with the field FROM: ... and therefore zarulivaet postal service because of invalid addresses. Php variable sendmail_from is not applied.

UPD: a Little clarification. We spawn_fcgi
by | 8 views

4 Answers

0 like 0 dislike
a classic bunch of the Apache:8080+Nginx:80+FastCGI
WTF? You'll have to determine — or Apache, or fastcgi. A classic bunch of this
\rnginx:80 --> apache:8080, or:
\rnginx:80 --> fastcgi(php-fpm):8080
by
0 like 0 dislike
Have Fastcgi process rights in listing /usr/local/etc/ or reading /usr/local/etc/php.ini?
by
0 like 0 dislike
about a passing question: how do you want to work? What settings cause the mail () function? Which mail server?
by
0 like 0 dislike
You have clio.su/test.php at the beginning of the Loaded Configuration File is (none). In your case, judging by the fact that the option Configuration File (php.ini) Path /usr/local/etc then the fastcgi process does not have permission to read the file /usr/local/etc/php.ini
\r
It is worth to consider, depending on the OS. In Ubuntu for example, the individual configs of PHP to run under Apache, Cli and CGI. i.e. in the directory /etc/php5/ cli has subfolders/ apache/ cgi/ in every your php.ini and downloaded respectively, from the folders how run php
Where are all the Apache did not understand.
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
7 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
1,119 users