Content

PHP Selector

DirectAdmin has support for running two PHP versions alongside each other. Currently, the most popular combination is PHP 5.6 and 7.0. This way, you can support both legacy software as well as very new and up-to-date software.

From the main User Menu, Account Manager → select the “Domain Setup” link. Click on the Domain Name. You will see a page that looks like this:

WeKNow DirectAdmin

Navigate to “• PHP Version Selector” and click on it.

WeKNow DirectAdmin

You are now able to select a PHP version per virtual host (website). All websites currently running on your DirectAdmin server will use the value set for php1_release. In order to alter the PHP version per website, navigate to the User Level, select the domain name, click “Domain Setup” under “Your Account”, click the domain name and scroll down. As demonstrated in the screenshot below, you will now be able to choose a PHP version. Note that after changing the version, it can take up to 1 minute to process the changes. A scheduled restart of the web server is added to the DirectAdmin task queue.

Important Note

Using PHP versions older than 5.6 is strongly discouraged as they have all reached their end of life (EOL), thus and no longer updated or maintained. As such, it is recommended that you use PHP 7 whenever possible, and use 5.6 purely for being able to temporarily support legacy applications.

Need more help?

Please contact your hosting company for more assistance, or visit the DirectAdmin support forum at https://forum.directadmin.com/.

Was this article helpful to you?

Comments are closed.