The newest problem is: php-fpm is mixing configs of different vhosts.
let me explain,
I have a vhost section like:
server {
listen 80;
server_name sub1.something.com;
....
root /var/www/httpdocs;
#access_log /var/log/nginx/debug-fpm.log debug_phpfpm;
include fastcgi_params;
try_files $uri =404;
limit_req zone=one burst=3;
limit_conn phplimit 5;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www/httpdocs/somedir11";
fastcgi_param PHP_ADMIN_VALUE "doc_root=/var/www/httpdocs";
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_read_timeout 300;
}
and another section similar but different server_name:
server {
listen 80;
server_name sub2.something.com;
....
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/var/www/httpdocs/somedir22";
}
the problem is this:
even the user goes to sub1.something.com, the open_basedir of second vhost section (somedir22) is applied. It seems that, php or php-fpm or nginx or whatever it is, remembering some previous state of PHP_ADMIN_VALUE.
what may be the problem ?
I also suspect this before, because I see logs in syslog, showing wrong filenames.
for ex: php syslog(LOG_WARNING,"log from file1") generates a log in syslog,
syslog(LOG_WARNING,"log from file2")
I saw in past, logs are mixed somehow. wrong message is displayed with wrong prefix (of syslog line).
Is there a setting that causes php-fpm (or anything) remembers some other state ?
Any suggestion ?
Note1: I have single pool for all web requests/subdomains. this may cause problem ?
Bookmarks