Change PHP version per folder

Available PHP versions in the PHP Selector
– php 5.4
– php 5.6
– php 7.1
– php 7.2
– php 7.3
– php 7.4

If you need another version like 5.2 to be installed you can request it, but the main PHP versions are the ones of the list above.

To make a folder use a different version of PHP instead that the default one you need to create a file named ".htaccess",
Creation of .htaccess file
then you need the add this line:
- AddHandler application/x-httpd-phpXX .php [change "XX" for the version you need without dots, like in the photo below]
Edit this line to change PHP version

  • PHP, CPanel, CWP
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Use always SSL (https://)

To force the loading of a website when the request is without SSL (without https:// in the...

Execute CRON commands with different PHP version

Available PHP versions in the PHP Selector– php 5.4– php 5.6– php 7.1– php 7.2– php 7.3– php 7.x...

Migrar/Instalar certificados SSL

Como migrar mi certificado (si uso certificado de CloudFlare) Accedemos a el panel antiguo, en...

Solicitar certificado SSL en CloudFlare

Para solicitar el certificado en CloudFlare lo primero es acceder a CloudFlare y al dominio que...