How to Set PHP Version Per Website in DirectAdmin

DirectAdmin allows you to set different PHP versions for individual websites hosted on your account. This feature is useful when you have multiple sites with varying PHP version requirements. This guide will walk you through the process of changing the PHP version for a specific website.

Prerequisites

  • Access to your DirectAdmin control panel
  • A hosted website on your DirectAdmin account
  • Basic knowledge of your website's PHP version requirements

Step-by-Step Guide

  1. Log in to your DirectAdmin control panel.
  2. Navigate to the Domain Management section:
    • Click on the "Domain Management" icon in the main menu, or
    • Use the navigation filter box to search for "Domain Management" and select it when it appears.
  3. Find the domain you want to modify and click on "Modify Domain".
  4. On the domain modification page, locate the "PHP Version Selector" option. It's usually near the top of the page, often next to other advanced options like "ModSecurity".
  5. Click on the "PHP Version Selector" link to open the PHP version configuration page.
  6. Select the desired PHP version from the dropdown menu or list of available versions.
  7. After selecting the new PHP version, click "Save" or "Apply Changes" to confirm your selection.
  8. Clear your browser cache and refresh your website to ensure the changes are reflected.

Important Notes

  • Make sure your website is compatible with the PHP version you select.
  • Some PHP versions may not be available depending on your hosting plan or server configuration.
  • Changing PHP versions can sometimes cause issues with existing scripts or applications. It's recommended to test your website thoroughly after making changes.
  • If you encounter any problems after changing the PHP version, you can always revert to the previous version using the same method.

Troubleshooting

If you experience issues with changing the PHP version:

  • Verify that the PHP Version Selector option is available for your account.
  • Check if there are any restrictions on PHP version changes in your hosting plan.
  • Clear your browser cache and try accessing your website from a different browser or device.
  • If your website displays errors after changing the PHP version, review your site's error logs for specific issues.

If you don't see the PHP Version Selector option or have trouble changing the PHP version, contact ArkHost support for assistance. Remember, keeping your website's PHP version up-to-date is important for security and performance reasons, but always ensure compatibility before upgrading.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pointing Additional Domains to Your Primary Site

You can direct an additional domain to the root of your primary website. For example, if your...

How to Create a Domain Alias in DirectAdmin

A domain alias allows you to access the content of one domain (e.g., old.example.com) through...

How to Remove a Domain Pointer in DirectAdmin

This guide will walk you through the process of removing a domain pointer (alias) from your...

How to Create a Subdomain in DirectAdmin

This guide will walk you through the process of creating a subdomain using your DirectAdmin...

How to Remove a Subdomain in DirectAdmin

This guide will walk you through the process of removing a subdomain from your DirectAdmin...