change php version 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

4.3
10
Grg 95 points

                                    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

4.3 (10 Votes)
0
3.5
4
G.S. 95 points

                                    sudo update-alternatives --config php

3.5 (4 Votes)
0
4.17
6

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

4.17 (6 Votes)
0
0
0
Malcolm 110 points

                                    sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
changing php version in linux update php 5 to 7 ubuntu upgrade unbuntu php ubuntu server updating php how to upgrade from php7.4 to 8.0 in ubuntu change php-fpm version ubuntu update php.ini ubuntu how to change php version on ubuntu ubuntu change current php version ubuntu upgrade php to from 7.2 to 7.3 ubuntu upgrade php to from 7.2 to 7.4 ubuntu update php 7.2 to 7.4 update my php version on linux change php 8.0 to 7.3 ubuntu change php 7.3 ubuntu ubuntu change php version command update php 7.3 to 7.4 terminal ubuntu php change version linux ubuntu php version upgrade how to upgrade php 7.2 to 7.4 ubuntu 18.04 how to change my php ubuntu version change php version 7 to 8 ubuntu update php version in terminal update php to version 7.4 how to upgrade to php 8 version ubuntu php upgrade to 7.3 ubuntu can i update php in ubuntu 16 upgrade php to 7. ubuntu how to update into the current version of PHP in ubuntu using terminal linux change php cli version update php-fpm 7.4 ubuntu upgrade to php 7.3 ubuntu 18.04 ubuntu update php 8 ubuntu upgrade php to 7.2 ubutun change php version how to upgrade php version in linux update php version on ubuntu ubuntu linux change php version upgrade from php 7.3 to 7.4 ubuntu ubuntu cannot upgrade php7.2 to 7.4 apache2 cannot change php version ubuntu ubuntu change php version cli linux change linux php cli version change php version of cli in ubuntu update php version to php 7.4 linux to upgrade pHP version update php version to 7.4 update php in ubuntu 16.04 how to upgrade php version in ubuntu CentOS 7 ubuntu 16.04 upgrade php 7.4 ubuntu upgrade php to 7.2. linux change php version to 7.3 upgrade php 7.2 to 7.4 ubuntu 18.04 ubuntu change php version 8 to 7.4.3 ubuntu change php version 7.4 to 7.3 change version of php command update php 7.4 ubuntu 14 update php 7.4 ubuntu upgrade php 8 ubuntu ubuntu update php version to v7.4 using terminal server update version php on server ubuntu command update version php on server ubuntu change php version ubuntu server change php version in apache2 ubuntu how to update php linux ubuntu upgrade php to 7.4 please update your php version ubuntu upgrade php on ubuntu 18.04 how to change php version used ubuntu 16.04 how to change php version used ubuntu how to upgrade php from 7.2 to 7.4 ubuntu command for change php version ubuntu php upgrade to 7.3 how to set default php version ubuntu upgrade php 7.4 ubuntu change php to version p 7.3 ubuntu change php version shell ubuntu upgrade php 7.4 to 8 how to change my php version in ubuntu change php version in terminal how to update the php version in linux upgrade php 7.4 to 8 ubuntu ubuntu upgrade php to latest version how to change php default version in ubuntu update php 7.2 to 7.3 ubuntu ubuntu upgrade php 7.0 to 7.2 ubuntu upgrade php 7.1 php version update in ubuntu ubuntu upgrade php 7.2 to 7.4 ubuntu how to update php update php 7 to 8 ubuntu update php in ubuntu update ubuntu php how upgrade php 7.4 to php 8.0 on linux ubuntu php change running version ubuntu 18.04 ubuntu 16 upgrade to php 7.4 ubuntu change php version from 8 to 7 upgrade php 5.6 to 7 ubuntu 16.04 upgrade php 5.6 to 7 ubuntu sudo update php to 7.4 update php version ubuntu 18.04 ubuntu change php version apache ubuntu update php version to 8.1 for cli ubuntu update php version to 8.1 ubuntu update php version from 7.3 to 8 ubuntu how to upgrade to php8 how to update php ubuntu change php version terminal how to update my php version in ubuntu how to update my php version in linux ubuntu change php version from 7 to 5.6 update php version terminal ubuntu php upgrade to 7.4 ubuntu ubuntu switch php version easily set php version 7.0 ubuntu change php 8.0.7 to php7.4 in ubuntu terminal change php8.0.7 to php7.4 in ubuntu terminal ubuntu update php 7.2 to 7.3 update php ubun upgrade php 7 to 8 ubuntu update php version in ubuntu 16.04 how to upgrade php 7.2 to 7.3 ubuntu 16.04 how to change php cli to different version ubuntu ubuntu update php version to 7.2 update php version ubuntu 14 upgrade php version ubuntu 18.04 php change default version ubuntu update php 7.0 to 7.3 version in ubuntu upgrade php version ubuntu 16.04 update php 7.0 to 7.4 version in ubuntu ubuntu php 7.4 upgrade upgrade php 7.3 to 7.4 ubuntu linux upgrade php version ubuntu update to php 8 change ubuntu php version ubuntu upgrade php version ubunut upgrade php ubuntu change my cli php version from 8 to 7.4 upgrade php version ubuntu server ubuntu change my php cli version from 8 to 7.4 ubuntu upgrade php 7.2 to 7.3 upgrade php ubuntu from 7.0 ubuntu upgrade php from 7.0 to 7.2 ubuntu set php version default change php cli version change update php 7.1 to 7.4 ubuntu update php 7.1 to 7.4 version ubuntu how to change default php version in ubuntu how to upgrade php version linux how to upgrade php7.2 to php7.4 in ubuntu upgrade php in ubuntu linux update from php 7.2 to 7,4 update php version ubunut update php version ubuntu to 8 how to upgrade php version in ubuntu update php linux server update php version php 7.4 ubuntu updating php version ubuntu ubuntu server update phpp upgrade only php ubuntu update php version on linux change php version 8.0 to 7.2 ubuntu ubuntu default php version ubuntu in php version chnage 7.1 php update version ubuntu change php version apache ubuntu ubuntu 18.04 update php How to change the php version in command line change php version ubuntu folder change php version 8 to 7.4 linux upgrade php on ubuntu server linux php version change how to change php version in terminal local how to upgrade php version in terminal change php command line version change php version ubuntu apache change php version ubuntu command line how to change php version in command change php version on linux server change php version command update php to 8 ubuntu upgrade php 7.2 x to 7.4 in ubuntu how to update php version in ubuntu UPDATE PHP ON LINUX UBUNTU ubuntu update php to latest version change php version ubuntu from 8.0 to 7.4 how to swtich php version in ubuntu upgrade to php 8 ubuntu terminal change php version update local version of php ubuntu change version php linux update php version 8 ubuntu update php version to php 7.3 upgrade php version linux upgrade php 7.4.16 to 7.4.18 linux ubuntu update php version to 8 upgrade php version on linux how to update php version on linux server how to change php version 7.4 to 7.1 in ubuntu change php version 7.4 to 7.1 in ubuntu php version update command ubuntu update php to version 8 ubuntu linux how to upgrade php change the php version in ubuntu update php 7.2 7.3 ubuntu wget linux command line update php version php version change in ubuntu 18.04 change php version command line ubuntu ubuntu change php cli how to change php version in terminal switch php version in ubuntu upgrade php linux updating php ubuntu ubunto set default php version how to change php version in ubuntu 18.04 upgrade php version in ubuntu 16.04 upgrade php version in ubuntu how to update php in ubuntu update php through ubuntu change php version 8 in linux change php version in linux ubunto php version change update version php ubuntu update php in ubuntu 18.04 Linux change php version update php packages ubuntu update php version 7.4 ubuntu linux php update how on ubuntu 16 linux php update how on ubuntu change ubuntu php ubuntu php version update how to update php y=ubuntu update php 7.2 to 7.4 ubuntu upgrade php 7.0 to 7.2 ubuntu 16.04 upgrade to php 7.2 ubuntu 16.04 update php linux ubuntu update php to 7.4 linux update php to 7.4 linux php change version ubuntu change cli php version ubuntu switch php version ubuntu upgrade to php 8 update php version terminal ubuntu change php version to 7.3 default ubuntu change php version to 7.3 def ubuntu change php version to 7.3 how to update ubuntu version of php to 7.2.5 or greater ubuntu change php cli version update php to 7.3 ubuntu 16 update php version to 7.3 ubuntu change php version ubuntu 18.04 set php version to 7.4 ubuntu how to update the php version in ubuntu ubuntu upgrade php 7.2.19 ubuntu upgrade php how to update php 7.2 to 7.4 linux change php version debian how to update php version in ubuntu 18.04 default php set in ubuntu set default php version ubuntu ubuntu 16.04 upgrade php 8 change php cli version ubuntu 18.04 change php cli version change cli php version ubuntu ubuntu set default php how to update php version in linux change php version cli update php version 7.4 how to change 8.0 to 7.3 php version in ubuntu how to change 7.4 to 7.3 php version in ubuntu php version change on ubantu how change php version that apache use in ubuntu how to upgrade to php 8 ubuntu ubuntu terminal change php version upgrade php 5.3 to 7 ubuntu change php version command line php ubuntu upgrade to php8 change default php version ubuntu ubuntu not updating php 7.4 to php 8 upgrade php 7.2 to 7.4 ubuntu php version upgrade ubuntu ubuntu update php version change php default version ubuntu update php to newest version ubuntu making .php a default in ubuntu server update php ubuntu 18.04 change my php version ubuntu linux update php version how to change php cli version in ubuntu update php version ubuntu 7.0 to 7.4 apache ubuntu update php upgrade php ubuntu php upgrade ubuntu update php 8 ubuntu php version change in ubuntu change php version ubunut change php version in command line ubuntu change php 5.6 update php version in ubuntu 7.2 to 7.4 change php cli version ubuntu update php ubuntu change php version in apache ubuntu command line change php version how to upgrade php on ubuntu how to upgrade php 7.3 in largon how to switch to php version 7 ubuntu change php version centos change php version joomla update php version linux change version php ubuntu how can we switch to another php version how to install diffrent php version alter php version 5.6 UPDATE PHP VERSION IN UBUNTU 7.2 TO 7.3 UPDATE PHP VERSION IN UBUNTU 18.04 select php version ubuntu ubuntu php version manager upgrade php 7.3 ubuntu change php version in linux for speciic project set system php version ubuntu ubuntu 20 update-alternatives --config php not reflecting shift php version in ubuntu 20.04 upgrade php 7.2 to 7.3 ubuntu 16.04 upgrade php 7.2 to 7.3 ubuntu upgrade to php 7.3 ubuntu several php versions deactivate how to enable php version in xampp ubuntu18 update php 7.3 ubuntu 18.04 ubuntu php update update php version in ubuntu install specific php version php --version is 7 but I installed 8 linux command to set php versions commands how to slelect php version in linux upgrade php 7.0 to 7.3 ubuntu linux set default php version update php version ubuntu linux change php command line version command to install php5.4 in ubuntu 18.04 select php default 7.1 alter version php make php 7.2 defaul how to usr/local/php70/bin/php using ubuntu 18.04 ubuntu apache php version use mor version of php on linux ubuntu php version managment apt installphp7.3-bz2 wsieth php version ubuntu how can i change php version swigtch between two php version on ubuntu changes from one version to another php using both php 8 and php 7 on my ubuntu machine ubuntu 18.04 install php 5.6 and 7.4 with modules how to disable php version 8.0 on ubuntu update-alternatives php-fpm in ubuntu 18.04 i have php 5.6 in /etc/php but not /usr/bin linux php version manager how to use special php version in ubuntu alternative /usr/bin/php7.4 for php not registered; not setting specify the version of php being installed ubuntu ubuntu php versions change defalt php version install multiple php versions ubuntu 7 and 8 install multiple php versions ubuntu use a different version of php as default enable another version of php switch default php version update-alternatives: error: alternative /usr/bin/php7.3 for php not registered install different version of php how to check php version in ubuntu update php on ubuntu how to update apache php version in ubuntu terminal alternative /usr/bin/php7.1.31 for php not registered; not setting linux php version management linux php version managmenr how to update php in ubuntu 18.04 upgrade php version 7.2 to 7.3 ubuntu server change php version how to update php version ubuntu ubuntu upgrade to php7.4 update alternatives conig php php default version php.watch install php 7.3 ubuntu ubuntu upgrade php 7.3 to 7.4 isntall specific version php ubuntu check php version select dffault php version ubvuntuy 20 changer phpversion php linux install php 5.6 and dependencies change php version on ubuntu change php verion ubuntu chnage php version in ubuntu update alternatives php update php version 7.3 ubantu how to enable higher php version local ubuntu how to upgrade php version to 7.3 change php version ubntu set php version switch php version linux how to set default php version in ubuntu old php verions linux ubuntu latest older php version switch php version change php version on ubuntu from 5.6 to 7.4 cahnge active version php update php version ubuntu 20.04 switch php 5 to php 7 install php with version in ubuntu alter version php apache ubuntu set standart php ubuntu switch between php versions in linux ubuntu choose system php upgrade php version ubuntu alternatives --install php sudo update-alternatives --config php install 7.3 ubuntu switch php how to switch between multiple php version on ubuntu how to change php version in ubuntu linux php active version ubuntu set default php version linux switch php version enable new php version ubuntu ubuntu 18.04 select php version how to switch php version in ubuntu 18.04 set default php version in ubuntu sudo enmod 5.6 change linux php version change php version ubuntu 20 linux set default php install a specific version of php how to enable php version in ubuntu how to use different php version in ubuntu ubuntu use specific php version switch to another php ubuntu php version 7.3 to 7.2 sudo upgrade php version 7.3 change php linux install older php version ubuntu enable a php version in ubuntu cli set different php version for particular project on ubuntu choose php version ubuntu switch between multiple php versions change php version from 7.2 to 7.3 in ubuntu change php version apache2 ubuntu change php version a ubuntu change php default ubuntu apache2 swithch php version ubuntu how to install an old php version ubuntu set active php version set default php linux switch to other php version sudo update-alternatives --set php /usr/bin/php7.2 disable php version ubuntu upgrade php 5.6 to 7.1 ubuntu in apache 2 ubuntu change php version in directory how to upgrade php 7.2 to 7.3 ubuntu 18.04 switch php version ubuntu 18.04 how to change the php version in ubuntu change default php version ubuntu 18.04 apache install php older version enable php version ubuntu ubuntu 18.04 change from php7 to php5 ubuntu 18.04 switch to lower php version switch between php version 5.6 and 7 php version switch ubunut linux no alternatives for php all the install php version in ubuntu install new php version for cli ubuntu php version not 7.3 ubuntu install all php versions ubuntu php change version ubuntu how to install php 7.3 on ubuntu 16.04 digitalocean how to update php7.1 to 7.3 ubuntu install php version only in project update php 7.3 Ubuntu 16.04.7 LTS digital ocean php alternative 7.0 install libapache2-mod-php7.3 php version change ubuntu ubuntu apache change php version ubuntu install php 5.6 and set as default multiple php version ubuntu update-alternatives: error: alternative /usr/bin/php7.0 for php not registered; not setting linux set php version default install old version php ubuntu upgrade php version to 7.3 ubuntu update php to 7.3 replace php with new one ubuntu ubuntu upgrade php to 7.3 change php version of apache in ubuntu upgrade php to 7.3 ubuntu upgrade php to 7.3 update php version to 7.3 how to switch php version in ubuntu sudo update-alternatives --set php set default php version linux php switch version use different php version ubuntu list of php version apache ubuntu php install by version how to install multiple php versions ubuntu ubuntu how to set php version to use install php older versoin linux how to enable particular php version in ubuntu change php version install both php 5.6 and 7 php switch version linux a2dismod php get php version ubuntu set default php ver configure php 5.6 and php 7.1 in ubuntu 2 project ubuntu different php versions how to install specific version of php ubuntu how to change php version in linux change php verison in ubuntu ubuntu install update-alternatives php Ubuntu Change Default PHP Version Ubuntu Change PHP Version Globally php change version switch php versions for apache in ubuntu how can i change the php versions ubutu debian switch php versions change apache php version ubuntu without a2enmod change apache php version ubuntu how to switch between php versions change php versions set php version ubuntu how to set php version ubuntu ubuntu manage php versions Ubuntu Activating Specific PHP Version multiple php version change php verison in ubunut update-alternatives php ubuntu change php version to 7.2 change php version linux lamp ubuntu switch between php versions install specific version of php ubuntu ubuntu install different php version ubutnu chagne php version linux change version php change php version in ubuntu run different php versions in terminal multiple php versions ubuntu how to change php version ubuntu how to change the php i am using ubuntu rhel make specific version of php default for installation change installed php version in enable php version from list ubunttu select b/w multiple php versions ubunttu change current php version how to install exact php 7.1 linux ubuntu php version change ubuntu download different php version ubuntu install php version install several versions of php and switch ubuntu change php version php multiple versions use different version of php php version used by apache ubuntu ubuntu set php version linux install multiple php versions switch php version ubuntu how to change python version vscode how to update my mac python version set default mysql version on debian debian set default mysql version how to choose a default php version ubuntu use version of php ubunu use version of php set default verssion php switch between php versions ubuntu change php version installer ubuntu ubuntu select php version how to change php versions ubuntu change php version linux disable 5.6 php version and start 7.2 switch version in ubuntu change php version ubuntu
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source