Search
 
SCRIPT & CODE EXAMPLE
 

PHP

switch php version ubuntu

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

switch php version 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
Comment

switch php version

sudo update-alternatives --config php
sudo update-alternatives --config phar
sudo update-alternatives --config phar.phar
Comment

switch php version ubuntu

$ 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
Comment

switch php versions

On Mac using Home Brew, you can switch php versions easily:
brew unlink php@8.0
brew link php@7.1

Or follow the upgrade path to get your app to support the newer php version
Comment

PREVIOUS NEXT
Code Example
Php :: php array of objects filter 
Php :: check if post id exists wordpress 
Php :: laravel increment column value in update query 
Php :: include a website in php file 
Php :: error first laravel 
Php :: redirect 301 wordpress 
Php :: get count of relationship table laravel 
Php :: remove slashes from json php 
Php :: validate timestamp php 
Php :: extract all arrays from sql response in php 
Php :: oxygen upload font 
Php :: php qatorni teskari aylantirish 
Php :: convert 1 digit to five digits laravel 
Php :: get message validator failed laravel 
Php :: AppHttpControllersValidator not found 
Php :: do shortcode wordpress 
Php :: php extract email address from string 
Php :: php merge 2 arrays 
Php :: wsl continuous loading 
Php :: laravel session put method 
Php :: php loop through objects 
Php :: websocket 2006 MySQL server has gone away 
Php :: php classes 
Php :: email php using html 
Php :: different days in carbon laravel between different dates 
Php :: Turning a StdClass object into an array 
Php :: get session id in laravel 
Php :: ci count 
Php :: php is daylight savings 
Php :: concat in laravel 8 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =