How to Change the PHP Version on DirectAdmin

Changing the PHP version in DirectAdmin is a straightforward process. Follow these steps to update your PHP version:

Step-by-Step Guide:

  1. Log in to your DirectAdmin Account:

    • Open your web browser and navigate to your DirectAdmin login page.
    • Enter your username and password, then click Login.

  2. Navigate to the Domain Management Section:

    • Once logged in, locate the Account Manager section.
    • Click on Domain Setup.

  3. Select the Domain:

    • You will see a list of domains associated with your account.
    • Click on the domain for which you want to change the PHP version.

  4. Choose PHP Version:

    • On the Domain Setup page, you will see an option for PHP Version Selector or similar.
    • Click on PHP Version Selector.

  5. Select the Desired PHP Version:

    • You will see a dropdown menu listing the available PHP versions.
    • Select the PHP version you want to use from the dropdown menu.

  6. Save Changes:

    • After selecting the desired PHP version, click on Save or Apply.
    • This will change the PHP version for the selected domain.

  7. Verify the Change:

    • To ensure the PHP version has changed, you can create a phpinfo.php file.
    • Open the file manager in DirectAdmin, navigate to the root directory of your domain, and create a new file named phpinfo.php.
    • Add the following line of code to the file:
      php
      <?php phpinfo(); ?>
    • Save the file and access it via your web browser by navigating to http://yourdomain.com/phpinfo.php.
    • The PHP information page will display the current PHP version in use.

Troubleshooting

  • If you do not see the PHP Version Selector option, your hosting provider may have disabled it. Contact your hosting support for assistance.
  • Ensure that any custom settings or extensions needed for your website are configured correctly after changing the PHP version.

By following these steps, you can easily change the PHP version for your website hosted on DirectAdmin.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Update DirectAdmin Custom PHP Memory Limit Setting

Introduction: This guide explains how to update the custom PHP memory_limit setting in...

How to Update DirectAdmin Custom PHP Memory Limit Setting

Introduction: This guide explains how to update the custom PHP memory_limit setting in...

Email Sending Limits for Shared Hosting Plans

All shared hosting plans on iCoreHosting have specific email sending limits to ensure optimal...

Understanding Inode or File Usage Limits

Inodes are a fundamental aspect of how file systems manage data. Each inode stores information...

How to Change the PHP Version on cPanel

Changing the PHP version in cPanel is a straightforward process. Follow these steps to update...