How to run different php version on different folder

Posted February 24, 2021 401 views

I have setup multiple php versions. i have setup fpm for multiple php version, i am able to use multiple php version based on virtual host. but i have single folder on root like projects and it contains multiple projects inside it so i want to use different php version for each of them using .htaccess or anyhow if any other way for that. please guide me how it can be achived.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Finally solved with the help of Apache configuration file <Location>