Hi! On a cPanel site, I can chage the PHP version by adding this line to the .htaccess file: Code: AddHandler application/x-httpd-php70 .php I have an ISPConfig3 Installatin that I use as development server, and in a single web folder I have several projects and some of them need PHP7 Is it possible to change PHP version using .htaccess AddHandler directive for a specific folder using ISPconfig? How? Thanks!
Same thing may work in ISPConfig, that htaccess maybe is not CPanel specific. But ISPConfig does it differently. PHP version can be set per website. https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/
Hi! Thanks for the reply! I know I can change PHP version per site, that's what I'm doing right now, but I wanted to know if I can change PHP version as per folder through AddHandler in .htaccess Thanks in advise!
If your server is setup correctly, no, it will not work. Each site has a php daemon configured to run as the user/group of that website, and while you could probably point your site to use another site's php daemon (at least until https://git.ispconfig.org/ispconfig/ispconfig3/issues/4010 is implemented), you cannot properly configure a php daemon for your site's user/group/etc. via an .htaccess file.