[BlueOnyx:27094] fpmPort mismatch between vsite and its subdomain

Tomohiro Hosaka bokutin at gmail.com
Sat Jul 6 08:01:18 -05 2024


Hello.

Subdomain has not been working since yum update yesterday in 5210R environment.

[Sat Jul 06 04:07:47.861415 2024] [proxy_fcgi:error] [pid 903704]
[client XX:64304] AH01071: Got error 'PHP message: PHP Warning:
Unknown: open_basedir restriction in effect.
File(/home/.sites/site28/wwwroot/subd1/index.php) is not within the
allowed path(s):
(/tmp/:/var/lib/php/session/:/usr/sausalito/configs/php/:/home/solarspeed/php-7.3/share/pear:/home/.sites/site2/)
in Unknown on line 0

root # grep site28 /etc/group
site28:x:1013:site28-admin,admin

root # fgrep fcgi /etc/httpd/conf/vhosts/site2
<Proxy "fcgi://127.0.0.1:9013" retry=0>
    Sethandler proxy:fcgi://127.0.0.1:9013
<Proxy "fcgi://127.0.0.1:9013" retry=0>
    Sethandler proxy:fcgi://127.0.0.1:9013

root # fgrep fcgi /etc/httpd/conf/vhosts/site28
<Proxy "fcgi://127.0.0.1:9015" retry=0>
    Sethandler proxy:fcgi://127.0.0.1:9015
<Proxy "fcgi://127.0.0.1:9015" retry=0>
    Sethandler proxy:fcgi://127.0.0.1:9015

root # fgrep fcgi /etc/httpd/conf.d/subdomains/site28-*
/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:<Proxy
"fcgi://127.0.0.1:9013" retry=0>
/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:    Sethandler
proxy:fcgi://127.0.0.1:9013
/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:<Proxy
"fcgi://127.0.0.1:9013" retry=0>
/etc/httpd/conf.d/subdomains/site28-subd1.host.tld.conf:    Sethandler
proxy:fcgi://127.0.0.1:9013
/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:<Proxy
"fcgi://127.0.0.1:9013" retry=0>
/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:    Sethandler
proxy:fcgi://127.0.0.1:9013
/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:<Proxy
"fcgi://127.0.0.1:9013" retry=0>
/etc/httpd/conf.d/subdomains/site28-subd2.host.tld.conf:    Sethandler
proxy:fcgi://127.0.0.1:9013

The fpmPort of the subdomain of site28 does not match the fpmPort of
the vsite of site28.

The calculation method of fpmPort for
/usr/sausalito/handlers/base/apache/virtual_host.pl does not match
the calculation method of fpmPort for
/usr/sausalito/handlers/base/subdomains/subdomain-new.pl.

virtual_host.pl is subdomain-new.pl plus the processing below.
my $available_port = find_next_available_port($fpmPort);

It is natural that they may not be the same.

Also, find_next_available_port() is affected by the below, so at the
time of rewriting /etc/httpd/conf/vhosts/site28,
/etc/httpd/conf.d/subdomains/site28-*.conf should also be rewritten.
my @php_fpm_ports = qx(cat /etc/php-fp*/* | grep 'listen =' | cut -d :
-f 2 | sort -un);
my @listening_ports = qx(netstat -tupan | grep LISTEN | grep 127.0.0.1
| cut -d : -f2 | awk '{ print \$1 }' | sort -un);

Is fpmPort the correct behavior to match?
Is this a bug?

Thanks


More information about the Blueonyx mailing list