How to Change the PHP Version for Your Website in DirectAdmin

Different applications and scripts require specific PHP versions to function correctly. DirectAdmin allows you to change the PHP version for your website easily. This guide will show you how to update your PHP version in just a few steps.


1. Accessing PHP Settings in DirectAdmin

  1. Log in to your DirectAdmin control panel.
  2. Navigate to "Account Manager""Select PHP Version".

2. Choosing a Different PHP Version

  1. Under the "Current PHP Version" dropdown, select the version you want to use.
  2. Click "Set as Current" to apply the change.
  3. Your website will now run on the selected PHP version.

3. Customizing PHP Extensions (Optional)

  1. On the same page, you’ll see a list of PHP extensions.
  2. Check or uncheck the extensions you need.
  3. Click "Save" to apply the changes.

4. Verifying the PHP Version Change

  1. Create a new file in your website’s root directory (e.g., phpinfo.php).
  2. Add the following code inside the file:
    <?php phpinfo(); ?>
    

     

  3. Save the file and open it in a browser (yourdomain.com/phpinfo.php).
  4. Look for the PHP Version at the top of the page.

5. Troubleshooting PHP Compatibility Issues

  • If your website breaks after changing the PHP version, try reverting to an older version.
  • Check if your script or CMS (WordPress, Joomla, etc.) supports the new PHP version.
  • Ensure the required PHP extensions are enabled.

6. Need Help?

If you experience issues or need assistance, contact our support team via the Support Ticket system in your client area.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Creating and Managing Email Accounts in DirectAdmin

DirectAdmin provides an easy-to-use interface for managing email accounts associated with your...

How to Add a Domain in DirectAdmin

DirectAdmin allows you to add and manage multiple domains within your hosting account. This guide...

Managing Files and Using the File Manager in DirectAdmin

DirectAdmin provides a built-in File Manager that allows you to manage website files directly...

How to Set Up Cron Jobs in DirectAdmin

Cron jobs allow you to automate repetitive tasks on your hosting account by scheduling scripts to...

How to Create and Manage Databases in DirectAdmin

DirectAdmin allows you to create and manage MySQL databases easily, providing a simple interface...

Powered by WHMCompleteSolution