Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread Bender, Charles
You're making this very difficult for yourself by having 2 different versions of PHP installed on 1 server box. Even if you get working maintaining will be challenging. Suggestion- run PHP and PHP-FPM in separate Docker containers on same server, each with specific version of PHP you need. Then

Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread H
On 04/08/2021 08:57 PM, Daniel Ferradal wrote: > There is no such thing as default php version for a site. > > You have to make sure you have really two different instances of > php-fpm running for the different php versions you want to use. > > Chances are you have the same php-fpm service with tw

Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread Daniel Ferradal
There is no such thing as default php version for a site. You have to make sure you have really two different instances of php-fpm running for the different php versions you want to use. Chances are you have the same php-fpm service with two pools, so both may be with the same version. Apache do

Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread H
On 04/08/2021 07:34 PM, H wrote: > On 04/08/2021 06:05 PM, Daniel Ferradal wrote: >> Hello, >> >> What you must remove is all scriptalias, addhandler/action directives. >> So I'd say with a directive for each virtualhost you mentioned you >> have you just would need (and of course disable mod_php m

Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread H
On 04/08/2021 06:05 PM, Daniel Ferradal wrote: > Hello, > > What you must remove is all scriptalias, addhandler/action directives. > So I'd say with a directive for each virtualhost you mentioned you > have you just would need (and of course disable mod_php module): > > In one for one version point

Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread Daniel Ferradal
Hello, What you must remove is all scriptalias, addhandler/action directives. So I'd say with a directive for each virtualhost you mentioned you have you just would need (and of course disable mod_php module): In one for one version pointing to 9002 port: SetHandler "proxy:fcgi://localhost:

Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread H
On 04/08/2021 05:06 PM, Daniel Ferradal wrote: > Hello, > > You mention PHP is set to listen to different tcp ports, yet the > config you show from apache points to a unix socket with > mod_proxy_fcgi > > Also worth mentioning you don't need php7_module at all when pointing > to FPM with mod_proxy_

Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread Daniel Ferradal
Hello, You mention PHP is set to listen to different tcp ports, yet the config you show from apache points to a unix socket with mod_proxy_fcgi Also worth mentioning you don't need php7_module at all when pointing to FPM with mod_proxy_fcgi, so I would just unload that module asap in case you hav

[users@httpd] Running php 7.0 and 7.2 for different websites with apache

2021-04-08 Thread H
Using CentOS 7 and need to run two different versions of php for the websites, php 7.0 and 7.2. The set up is x.x.x.x/site1 and x.x.x.x/site2 and I am using php-fm for both php versions configuring port 9002 for php 7.0 and 9003 for php 7.2. I have a conf file for each site (this is site 1 whic

[users@httpd] Signals, SA_RESTART, and 3rd-party module interoperability

2021-04-08 Thread S26
Hi all, I've run into an issue with how Apache and Microsoft's ODBC driver interact with each other and have hit a wall as far as knowing what to do next to decipher the situation. Specifically, the issue is that when Apache is reloaded (apachectl graceful), SIGUSR1 is sent without the SA_RESTART