Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to Change the PHP Version of a Domain in DirectAdmin

This guide shows how to pick which PHP version your domain uses, using DirectAdmin.

DirectAdmin2 min read11 steps15 screenshots

What is a PHP version?

PHP is the language behind many websites, including WordPress. Like apps on your phone, PHP gets new versions. Newer versions are faster and safer. Old versions stop getting security fixes.

Some old plugins or themes only work on older versions. That is why you may need to switch.

Before you start

Changing PHP can break a site that uses old code. Take a backup first. Then change the version and test.

Steps

  1. Log in to DirectAdmin.
  2. Find Select PHP Version. It is often under Account Manager or Extra Features. In some skins it is under Domain Setup.
    Screenshot: Find Select PHP Version . It is often under Account Manager or Extra Features . In some sk
    Screenshot: Find Select PHP Version . It is often under Account Manager or Extra Features . In some sk
    Screenshot: Find Select PHP Version . It is often under Account Manager or Extra Features . In some sk
    Screenshot: Find Select PHP Version . It is often under Account Manager or Extra Features . In some sk
    Screenshot: Find Select PHP Version . It is often under Account Manager or Extra Features . In some sk
    Screenshot: Find Select PHP Version . It is often under Account Manager or Extra Features . In some sk
  3. If your server shows a list of domains, click the domain you want to change.
  4. Open the list of PHP versions.
  5. Choose the version you want. Only versions installed on the server will show.
  6. Click Save or Apply.
  7. Open your website in a browser. Check the main pages.

If your site shows an error

  1. Go back to the same page.
  2. Choose the version you used before.
    Screenshot: Choose the version you used before.
  3. Save and reload the site.
  4. Update your plugins and themes, then try the new version again.

If you cannot find the page

Some servers do not offer several PHP versions to users. The version may be set by the server admin. Open a ticket at https://secure.hostvento.com/submitticket.php and ask which versions your plan allows.

Screenshot: Some servers do not offer several PHP versions to users. The version may be set by the ser
Screenshot: Some servers do not offer several PHP versions to users. The version may be set by the ser
Screenshot: Some servers do not offer several PHP versions to users. The version may be set by the ser

Which version should I choose?

Pick the newest version that your site works with. Check what your CMS needs. A CMS is the software that runs your site, such as WordPress or Joomla. Its documentation lists supported PHP versions.

Screenshot: Pick the newest version that your site works with. Check what your CMS needs. A CMS is the
Tip: Check the PHP version your site uses now before you change it. Then you know where to go back if there is a problem.
Tip: Menu names can differ between DirectAdmin skins and servers.

Quick recap

  • Newer PHP is faster and safer, but old code may break.
    Screenshot: Newer PHP is faster and safer, but old code may break.
  • Take a backup before you change.
  • Use Select PHP Version and save.
    Screenshot: Use Select PHP Version and save.
    Screenshot: Use Select PHP Version and save.
    Screenshot: Use Select PHP Version and save.
  • Test your site and roll back if needed.
  • Ask support if the option is missing.