How to changet PHP version in htaccess - DirectAdmin

Now you can change your PHP version from the .htaccess file in by browsing to it in DirectAdmin File Manager:

PHP version

Find the file and put this lines of code:

<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$">
SetHandler application/x-lsphp71

You have to change lsphp71 with whatever is needed to be as a PHP version and you are done.

We are all dedicated to improve our setups!

Was this article helpful?

mood_bad Dislike 0
mood Like 1
visibility Views: 47