We have a legacy web application running php 5.4.10 and another application running the latest version of php ver 7.1
We would like to host both of these applications using apache on one instance of a redhat 7.3 server.
Here are the virtual hosts configured for each web app:
<VirtualHost *:80> DocumentRoot /var/www/app1.local.com/public_html ServerName www.app1.local.com ServerAlias app1.local.com ErrorLog /etc/var/www/app1.local.com/error.log CustomLog /var/www/app1.local.com/requests.log </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/app2.local.com/public_html ServerName www.app2.local.com ServerAlias app2.local.com ErrorLog /etc/var/www/app2.local.com/error.log CustomLog /var/www/app2.local.com/requests.log </VirtualHost>
According to this guide: https://webtatic.com/packages/php71/ I know I can use "sudo yum install php71w php71w-mysql" to install the latest version of php and get app 2 working, but how can I also install php ver 5.4.10, and configure app1 to use php version 5.4.10? What are the steps?
Forgive me if the question seems silly, I'm more or less new to linux. I haven't been able to find a reliable and up to date tutorial explaining how to get this done.