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 To switch toContinue Reading

Php Extension 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 sudo apt-get -y install php7.1-opcache php7.1-fpm php7.1 php7.1-common php7.1-gd php7.1-mysql php7.1-imap php7.1-cli php7.1-cgi php-pear php-auth imagemagick libruby php7.1-curl php7.1-intl php7.1-pspell php7.1-recode php7.1-sqlite3 php7.1-tidy php7.1-xmlrpc php7.1-xsl memcached php-memcacheContinue Reading

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

Install PHP 7.1 PHP 7.1 stable version has been released. Use the following set of commands to enable PPA for PHP 7.1 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-getContinue Reading

Install PHP 7.2 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-getContinue Reading

Install PHP 7.3 PHP 7.3 stable version has been released. Use the following set of commands to enable PPA for PHP 7.3 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-getContinue Reading