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

2021-04-09 Thread H
- >> *From:* H >> *Sent:* Thursday, April 8, 2021 9:26 PM >> *To:* users@httpd.apache.org >> *Subject:* Re: [users@httpd] Running php 7.0 and 7.2 for different websites >> with apache >>   >> On 04/08/2021 08:57 PM, Daniel Ferradal wrote: >> >

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

2021-04-09 Thread H
On 04/09/2021 12:18 PM, Daniel Ferradal wrote: > No, specifically pruning everything you don´t need. > > That list of modules is not normal, and there is probably lots of > configuration associated with them you are not using either. If I were > you I would end up with a quite simple config with on

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

2021-04-09 Thread Daniel Ferradal
No, specifically pruning everything you don´t need. That list of modules is not normal, and there is probably lots of configuration associated with them you are not using either. If I were you I would end up with a quite simple config with only the modules I really need. El vie, 9 abr 2021 a las

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

2021-04-09 Thread H
On 04/09/2021 11:48 AM, Daniel Ferradal wrote: > That´s probably it. You still have php7_module, and are probably > pointing to it somewhere in your config. For the looks of it you need > a serious and thorough cleanup of your configuration that you haven´t > done yet. > > Like we told you earlier,

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

2021-04-09 Thread Daniel Ferradal
That´s probably it. You still have php7_module, and are probably pointing to it somewhere in your config. For the looks of it you need a serious and thorough cleanup of your configuration that you haven´t done yet. Like we told you earlier, get rid of that module. As for your question: You just n

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

2021-04-09 Thread H
On 04/09/2021 06:03 AM, Daniel Ferradal wrote: > Looks correct yes. But still lots of things you are not showing could be > wrong. > > To solve issues you have to go one thing at a time, you know for sure > apache is pointing to different ports, if you disabled mod_php. Now > you must make sure th

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

2021-04-09 Thread H
On 04/09/2021 04:00 AM, Dino Ciuffetti wrote: >> This is from ps aux | grep fpm: >> >> root 17004 0.0 0.6 339008 11244 ?Ss 01:18 0:00 php-fpm: >> master process >> (/etc/opt/rh/rh-php70/php-fpm.conf) >> apache 17005 0.0 0.3 339112 7352 ?S01:18 0:00 php-fpm: >>

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

2021-04-09 Thread H
6 PM > *To:* users@httpd.apache.org > *Subject:* Re: [users@httpd] Running php 7.0 and 7.2 for different websites > with apache >   > 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 sur

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

2021-04-09 Thread Daniel Ferradal
Looks correct yes. But still lots of things you are not showing could be wrong. To solve issues you have to go one thing at a time, you know for sure apache is pointing to different ports, if you disabled mod_php. Now you must make sure the fpm pools are correct, both versions listening to each po

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

2021-04-09 Thread Dino Ciuffetti
> This is from ps aux | grep fpm: > > root 17004 0.0 0.6 339008 11244 ?Ss 01:18 0:00 php-fpm: > master process > (/etc/opt/rh/rh-php70/php-fpm.conf) > apache 17005 0.0 0.3 339112 7352 ?S01:18 0:00 php-fpm: > pool www > apache 17006 0.0 0.3 339112 7356 ?

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

2021-04-08 Thread Bender, Charles
need. Then have Apache proxy to these containers as required From: H Sent: Thursday, April 8, 2021 9:26 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Running php 7.0 and 7.2 for different websites with apache On 04/08/2021 08:57 PM, Daniel Ferradal

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