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

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

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

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

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.

 Hosting
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?