How to Switch Php Version in Magento

Hello Folks, Today I started new tutorial. In this tutorial, Today I will explain to about how to switch PHP version in Magento. On your system, you may have installed multiple versions of PHP.

For instance, in your framework there are PHP 5.6 and PHP 7.2 the two adaptations are now introduced. Presently, Of course there are 7.2 variant empowered in your framework. Yet, when you need to switch in PHP 5.6 variant then, how to change to other adaptation?

Another choice is to apply the progressions physically without the assistance of the PHP rendition supervisor in cPanel by adding one of the beneath mandates in the .htaccess document of your store:

First of all, Disable PHP version using this below command :

sudo a2dismod php7.2

Change to PHP 7.3

AddHandler application/x-httpd-php73 .php .php5 .php4 .php3

Change to PHP 7.2

AddHandler application/x-httpd-php72 .php .php5 .php4 .php3

Change to PHP 7.1

AddHandler application/x-httpd-php71 .php .php5 .php4 .php3

REFERENCES :

Comments

Popular posts from this blog

FAQ Schema Generator

10 Native Advertising Statistics You Need to Know [2023]

Solved: Error 1273 Unknown Collation utf8mb4_0900_ai_ci in MySQL