I have installed latest version of PHP at the moment which is 7.2 and that is great for most of my projects. But now I need older one 5.6 for one project.
I’ve put the following in my httpd.conf file:
#LoadModule php7_module modules/libphp7.so LoadModule php5_module modules/libphp56.so #AddHandler php7-script php AddHandler php5-script php #Include conf/extra/php7_module.conf Include conf/extra/php56_module.conf
But when I run php -v I still get:
PHP 7.2.10 (cli) (built: Sep 11 2018 08:51:16) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Meanwhile php56 -v gives:
PHP 5.6.38 (cli) (built: Oct 15 2018 15:43:58) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
What more should I do to have PHP 5.6 version enabled?
Is there maybe some better way of handling multiple versions of PHP on Manjaro?