You are viewing an old revision of this post, from December 3, 2018 @ 16:34:14. See below for differences between this version and the current revision.

Tutorial Singkat Downgrade PHP 7 ke PHP 5.6 di Ubuntu Server 16.04 LTS

Nah sekarang giliran bagaimana kita downgrade dan Switching dari  PHP 7 ke PHP 5.6. , tentunya dengan tidak menghapus/uninstall PHP 7. Dengan asumsi libapache2-mod-php untuk keduanya bisa digunakan (cocok) berjalan di Apache.

Pertama Install PHP 5.6 :

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-mbstring php7.0-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0

Sekarang kita Switch :

	Dari php5.6 ke php7.0:
	Apache:
	sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart
	CLI:
	sudo update-alternatives --set php /usr/bin/php7.0
	
	Dari php7.0 ke php5.6:
	Apache:
	sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
	CLI:
	sudo update-alternatives --set php /usr/bin/php5.6

Post Revisions:

Changes:

There are no differences between the December 3, 2018 @ 16:34:14 revision and the current revision. (Maybe only post meta information was changed.)