+380 (44) 391 0955
Call me
24/7 email support
Live chat (10:00-19:00)

How to install the right version of PHP for a particular directory or domain.

To do this in the domain directory, for example:
create a .htaccess file with this content:

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

Where x-lsphp71 indicates the desired version. For PHP 5.2 specify x-lsphp52 and so on for other versions. Versions from 5.2 to 7.4 are available for selection

The list of available modules is comparable with those that are selected by default for the required version of PHP in the hosting control panel DirectAdmin, section Select PHP Version.

Total 0 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?