tgo To switch to PHP 4.4: AddHandler application/x-httpd-php4 .php To switch to PHP 5.0: AddHandler application/x-httpd-php5 .php To switch to PHP 5.1: AddHandler application/x-httpd-php51 .php To switch to PHP 5.2: AddHandler application/x-httpd-php52 .php To switch to PHP 5.3: AddHandler application/x-httpd-php53 .php To switch to PHP 5.4: AddHandler application/x-httpd-php54 .php ToRead More →

Php Extension sudo apt-get install php7.2-mysql php7.2-curl php7.2-json php7.2-cgi php7.2-xsl   sudo apt-get -y install php7.0-mysql php7.0-curl php7.0-gd php7.0-intl php-pear php-imagick php7.0-imap php7.0-mcrypt php-memcache  php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-mbstring php-gettext  

Set Default php  (dis Disable or en Enable) sudo a2dismod php5.6  Any install version sudo a2enmod php7.0 sudo a2enmod php7.1 sudo a2enmod php7.2 sudo a2enmod php7.3 sudo service apache2 restart 2nd Option sudo update-alternatives –config php

   sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install -y php7.1 php -v PHP 7.1.27-1+ubuntu18.04.1+deb.sury.org+1

     sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install -y php7.2 php -v PHP 7.2.16-1+ubuntu

    PHP 7.2 stable version has been released. Use the following set of commands to enable PPA for PHP 7.2 in your Ubuntu system and install it. You can use this version for production use also. sudo apt-get install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install -yRead More →