You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by H <ag...@meddatainc.com> on 2021/04/10 00:26:16 UTC

[users@httpd] Re: Related question on having multiple subdomains on one host

On 04/09/2021 03:50 PM, H wrote:
> I have been trying to configure running both php 7.0 and 7.2 on one host, certain sites using the former and others the latter. That's another thread though.
>
> However, I have some more questions given that my configuration is x.x.x.x/site1, x.x.x.x/site2 etc, I have separate conf files in /etc/httpd/conf.d/, one for each of site1, site2 etc, using this format:
>
> <VirtualHost *:80>
>         ServerAdmin xxxx
>         ServerName x.x.x.x
>         DocumentRoot /var/www/html/
>         Include /etc/httpd/conf.d/rh-php70-php-fpm.conf
>         ErrorLog /var/log/httpd/site1-error.log
>         CustomLog /var/log/httpd/site1-access.log combined
> </VirtualHost>
>
> The above is for x.x.x.x/site1, the others are similar except using site2 etc etc. The sites are in /var/www/html/site1, /var/www/html/site2 etc.
>
> - Is this the correct format? Ie, I shall have one <VirtualHost *:80> in each of those files? Or, does this need to be configured differently?
>
> - I want to log x.x.x.x/site1 errors to its own file, site1-error.log, and all accesses to site1 to its own file, the customlog file above. Site2 should be logged to its files etc. Yet I seem to end up with logentries for different subsites in the files which makes me suspect something is incorrectly configured...
>
>
For some reason I can get either php version to work but not both in parallel. Looking at other webpages referencing Ubuntu, it seems that one needs to enable being able to use multiple php versions in apache using a2enmod or something like that?

Is this required in CentOS as well?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Related question on having multiple subdomains on one host

Posted by angel Hall-Coulston <ra...@me.com.INVALID>.
For a ’test’ environment I agree with advice given. Just because something can be done, doesn’t mean it should be. Running two versions of php on one server as I understand it, is only going to cause headaches and ’straighten the roundness of wheels to make them more square’… For test purposes it’s far better to use a professional version of MAMP. There are several versions of MAMP to suit various OS. https://www.mamp.info/en/windows/ <https://www.mamp.info/en/windows/> 

PS I am not on commission for MAMP but if MAMP want to pay for my next holiday, they’re welcome :)

> On 10 Apr 2021, at 16:37, H <ag...@meddatainc.com> wrote:
> 
> On 04/09/2021 09:45 PM, Richard wrote:
>> 
>> 
>>> On 04/09/2021 03:50 PM, H wrote:
>>> I have been trying to configure running both php 7.0 and 7.2 on
>>> one host, certain sites using the former and others the latter.
>> 
>> While you say you need to run both php 7.0 and 7.2 I don't see that
>> you have explained why. 
>> 
>> I scanned through the changelogs from 7.2.0 back to 7.0. I may have
>> missed something but nothing popped out as breaking backwards
>> compatibility between 7.2 to 7.0. [actually, i think that there is
>> one backwards incompatible change, but it's security-related so if
>> it's in older PHP code that code should be updated.]
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>> 
> You are correct, I had not. I need to run various web applications that have been compatibility tested with various databases, various versions of php etc. It is not possible for me to test if their requirements are overly restrictive or not with regard to eg php version (or database version for that matter), I simply need to go with the recommended configurations.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


Re: [users@httpd] Re: Related question on having multiple subdomains on one host

Posted by H <ag...@meddatainc.com>.
On 04/09/2021 09:45 PM, Richard wrote:
>
>
>> On 04/09/2021 03:50 PM, H wrote:
>> I have been trying to configure running both php 7.0 and 7.2 on
>> one host, certain sites using the former and others the latter.
>
> While you say you need to run both php 7.0 and 7.2 I don't see that
> you have explained why. 
>
> I scanned through the changelogs from 7.2.0 back to 7.0. I may have
> missed something but nothing popped out as breaking backwards
> compatibility between 7.2 to 7.0. [actually, i think that there is
> one backwards incompatible change, but it's security-related so if
> it's in older PHP code that code should be updated.]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
You are correct, I had not. I need to run various web applications that have been compatibility tested with various databases, various versions of php etc. It is not possible for me to test if their requirements are overly restrictive or not with regard to eg php version (or database version for that matter), I simply need to go with the recommended configurations.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Related question on having multiple subdomains on one host

Posted by Richard <li...@listmail.innovate.net>.


> On 04/09/2021 03:50 PM, H wrote:
> I have been trying to configure running both php 7.0 and 7.2 on
> one host, certain sites using the former and others the latter.


While you say you need to run both php 7.0 and 7.2 I don't see that
you have explained why. 

I scanned through the changelogs from 7.2.0 back to 7.0. I may have
missed something but nothing popped out as breaking backwards
compatibility between 7.2 to 7.0. [actually, i think that there is
one backwards incompatible change, but it's security-related so if
it's in older PHP code that code should be updated.]



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org