Switch php versions on commandline ubuntu 16.04

前端 未结 16 1248
别那么骄傲
别那么骄傲 2020-11-30 16:53

I have installed php 5.6 and and php 7.1 on my Ubuntu 16.04

I know with Apache as my web server, I can do

a2enmod php5.6 #to enable php5
a2enmod php7.1         


        
16条回答
  •  忘掉有多难
    2020-11-30 17:27

    You can use the below script to switch between PHP version easily I have included phpize configuration too.

    https://github.com/anilkumararumulla/switch-php-version

    Download the script file and run

    sh switch.sh
    

提交回复
热议问题