[BlueOnyx:27223] Re: fpmPort mismatch between vsite and its subdomain AGAIN

Tomohiro Hosaka bokutin at gmail.com
Wed Aug 28 13:56:59 -05 2024


Hello.

2024-07-09 11:14 に Michael Stauber via Blueonyx さんは書きました:
> Hi Rickard, hi Tomohiro,
>
> I just published updated base-subdomain RPMs for 5210R and 5211R which fix both reported issues:
>
> 1.) PHP-FPM port assignment:
>
> We now search for and parse the Vsites main PHP-FPM pool file and extract the correct port number from it to use it in the subdomain configuration.
>
> 2.) Vsite or siteAdmin over-quota issue:
>
> If a Vsite is over-quota (or the siteAdmin that owns the Vsite's /web), then the PHP configuration for the subdomains is now correctly configured with (working) PHP 'disable_functions' and 'disable_classes' settings to prevent further file creation or editing. The previous settings were written out in the format suitable for FPM pool files, but not for Apache and caused an error.
>
> Changelog:
>
> https://devel.blueonyx.it/trac/changeset/5368/

The link above says Message: 2.7.0-4, which does not appear to have
been released for the 5210R.

My production environment 5210R:
# rpm -qa | ack subdomain | sort
base-subdomains-capstone-2.7.0-3.el8.noarch
base-subdomains-glue-2.7.0-3.el8.noarch
base-subdomains-locale-da_DK-2.7.0-3.el8.noarch
base-subdomains-locale-de_DE-2.7.0-3.el8.noarch
base-subdomains-locale-en_US-2.7.0-3.el8.noarch
base-subdomains-locale-es_ES-2.7.0-3.el8.noarch
base-subdomains-locale-fr_FR-2.7.0-3.el8.noarch
base-subdomains-locale-it_IT-2.7.0-3.el8.noarch
base-subdomains-locale-ja_JP-2.7.0-3.el8.noarch
base-subdomains-locale-nl_NL-2.7.0-3.el8.noarch
base-subdomains-locale-pt_PT-2.7.0-3.el8.noarch
base-subdomains-ui-2.7.0-3.el8.noarch

Is it a mistake that 2.7.0-4 has not been released?
Or is there a reason?

Thanks

2024年8月28日(水) 4:58 Tomohiro Hosaka <bokutin at gmail.com>:
>
> Hello.
>
> If I change the PHP version of one of the virtual sites, the
> subdomains are inaccessible.
>
> /var/log/httpd/error_log
> [Wed Aug 28 04:22:23.341056 2024] [proxy_fcgi:error] [pid 133540]
> [client XX.XX.XXX.XX:40265] AH01079: failed to make connection to
> backend: 127.0.0.1"
>
> Check the configuration file. conf.d/subdomains/*.conf has not been changed.
> /etc/httpd/conf/vhosts/site28
>     <Proxy "fcgi://127.0.0.1:9015" retry=0>
> /etc/httpd/conf.d/subdomains/site28-SUB.DOMAIN.TLD.conf
>     <Proxy "fcgi://127.0.0.1:9013" retry=0>
> /etc/php-fpm.d/site28.conf
>     listen = 127.0.0.1:9015
>
> My guess.
> conf/vhosts/*.conf and /etc/php-fpm*/site*.conf are rewritten by
> /usr/sausalito/handlers/base/apache/virtual_host.pl.
> But conf.d/subdomains/*.conf is only written once by subdomain-new.pl
> and is not properly rewritten when the port is changed?
>
> my $fpmPort = find_fpm_port($subdomain->{'group'});
> Since the fpmPort may be changed, wouldn't conf.d/subdomains/*.conf
> need to be properly reflected as well?
>
> This problem continues in my production environment.
>
> Thanks,



More information about the Blueonyx mailing list