On 04/02/2017 04:19 AM, jdd wrote:
Hello,
I need to test some programs with php5 and with php7
both seems to be available in yast (42.2)
is it safe to install both on the same computer?
if so, how can I make sure my php (web) applications use the desired version? virtualserver on apache or .htaccess?
thanks jdd
There is NO techinical reason you cannot install both except for rpm restrictions. I have both installed on all Arch servers as most apps still require php5 and have not been fully ported to 7. On Arch php5 installs to: /usr/lib/php56 with config in /etc/php56 php7 installs to the normal php folders. Then all that is required to chose between the two is to set the interpreter at the top of any .php file that requires php5 to the correct executable, e.g.: #!/usr/bin/php56 -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org