“Przełącz wersję PHP” Kod odpowiedzi

przełącz wersję 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

Zmień wersję 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

przełącz wersję php Ubuntu

# Interactive Way
sudo update-alternatives --config php
cyberjourney

Przełącz wersję PHP

sudo update-alternatives --config php
sudo update-alternatives --config phar
sudo update-alternatives --config phar.phar
Pleasant Plover

Przełącz wersję PHP

sudo update-alternatives --config php
Mr. Samy

Linux Ustaw domyślny php

update-alternatives --set php /usr/bin/php7.4
update-alternatives --set phar /usr/bin/phar7.4
update-alternatives --set phar.phar /usr/bin/phar.phar7.4
update-alternatives --set phpize /usr/bin/phpize7.4
update-alternatives --set php-config /usr/bin/php-config7.4
steamboatid

Odpowiedzi podobne do “Przełącz wersję PHP”

Pytania podobne do “Przełącz wersję PHP”

Więcej pokrewnych odpowiedzi na “Przełącz wersję PHP” w Shell/Bash

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu