“Ubah Versi PHP di Ubuntu” Kode Jawaban

Beralih Versi PHP Ubuntu

# From PHP 7.1 => PHP 5.6

#Apache
sudo a2dismod php7.1
sudo a2enmod php5.6
sudo service apache2 restart
 
 #command Line
 sudo update-alternatives --set php /usr/bin/php5.6
BlueMoon

Ubah Versi PHP Ubuntu

//In ubunutu
Default PHP 7.1 is set on your system and you need to switch to PHP 5.6

$ sudo a2dismod php7.1
$ sudo a2enmod php5.6
$ sudo service apache2 restart
  
sudo update-alternatives --set php /usr/bin/php5.6
Disgusted Dragonfly

Ubah Versi PHP Ubuntu

$ sudo update-alternatives --config php
 or
$ sudo a2enmod php7.1(version)
tsnl_incredible

Ubah Versi PHP di Ubuntu

sudo update-alternatives --config php
sudo update-alternatives --config phar
sudo update-alternatives --config phar.phar
Gleaming Gecko

PHP mengubah versi Linux

Interactive switching mode
sudo update-alternatives --config php
sudo update-alternatives --config phar
sudo update-alternatives --config phar.phar

Manual Switching
From PHP 5.6 => PHP 7.1
Default PHP 5.6 is set on your system and you need to switch to PHP 7.1.

Apache:

$ sudo a2dismod php5.6
$ sudo a2enmod php7.1
$ sudo service apache2 restart

Command Line:

$ sudo update-alternatives --set php /usr/bin/php7.1
$ sudo update-alternatives --set phar /usr/bin/phar7.1
$ sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1
From PHP 7.1 => PHP 5.6
Default PHP 7.1 is set on your system and you need to switch to PHP 5.6.

Apache:

$ sudo a2dismod php7.1
$ sudo a2enmod php5.6
$ sudo service apache2 restart
Command Line:

$ sudo update-alternatives --set php /usr/bin/php5.6
Vast Vulture

Ubah Versi PHP Ubuntu

sudo update-alternatives --config php
Mr. Samy

Jawaban yang mirip dengan “Ubah Versi PHP di Ubuntu”

Pertanyaan yang mirip dengan “Ubah Versi PHP di Ubuntu”

Lebih banyak jawaban terkait untuk “Ubah Versi PHP di Ubuntu” di PHP

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya