Multiple php versions with .htaccess files

Discussion in 'Apache' started by gldigital, Aug 22, 2017.

  1. #1
    My webhost is offering multiple php versions located inside /opt/alt/php5.X directory that can be used acting on cPanel Php selector.

    Actually they don't officially offer the possibility to run at the same time multiple versions of php (e.g. php 5.6 for one domain and php 7.1 for one of its subdir) either using .htaccess or other config file.

    There is any way that I can circumvent this limitation knowing the path to the desired php version and using .htaccess or php.ini files ?
     
    Last edited: Aug 22, 2017
    gldigital, Aug 22, 2017 IP