debian php switch version

Solutions on MaxInterview for debian php switch version by the best coders in the world

showing results for - "debian php switch version"
Chris
10 Jun 2016
1
2// Apache:
3sudo a2dismod php5.6 php7.1 php7.0   ## Shows error for modules not installed 
4sudo a2enmod php7.4
5sudo service apache2 restart
6
7// In case of issues disabling some modules use the following syntax
8sudo a2dismod mpm_prefork
9//--------------------------------------------------------------
10
11// Command Line:
12sudo update-alternatives --set php /usr/bin/php7.4
13sudo update-alternatives --set phar /usr/bin/phar7.4
14sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.4
15sudo update-alternatives --set phpize /usr/bin/phpize7.4
16sudo update-alternatives --set php-config /usr/bin/php-config7.4