Change PHP version for a subfolder

Hello friends! How can i change the php version of a subfolder?

For OpenLiteSpeed you can not do that, unless it is a seprate subdomain (for which you can select different PHP then main site)

Configure PHP by Directory or File – OpenLiteSpeed , there are several tutorials on how to do it, but it seems too complicated :stuck_out_tongue: , Is there a way to include this “external app” configurations by default to set php on individual folders?

Wao. Honestly I personally didn’t knew that you can do that using contexts.

That guide should work 100%, additional contexts may be confusing as you said but it should work.

1 Like

well, learn something new everyday, I still don’t know why people want to change php version all the time, but it’s interesting that you can do that on a rewrite to the file level…