hello - is it possible to have two different virtual servers run different versions of php?
i installed php5 on at /usr/local/bin/php5
in httpd.conf, i changed any ‘7.0’ to ‘5.6’
AddHandler fcgid-script .php5.6
FCGIWrapper /home/myDomain.com/fcgi-bin/php5.6.fcgi .php
FCGIWrapper /home/myDomain.com/fcgi-bin/php5.6.fcgi .php5.6
i copied /fcgi-bin/php7.0.fcgi to /fcgi-bin/php5.6.fcgi and changed the final line:
- mkdir /etc/php5.6; and copy php.ini from /etc/php7.0 to /etc/php5.6
now when i reference a webpage with
i now successfully see:
PHP Version 5.6.21
could anybody please verify my steps? since i guessed at everything so far i really dont trust this.