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
- Log in to your DirectAdmin control panel.
- 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.
- Find the domain you want to modify and click on "Modify Domain".
- 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".
- Click on the "PHP Version Selector" link to open the PHP version configuration page.
- Select the desired PHP version from the dropdown menu or list of available versions.
- After selecting the new PHP version, click "Save" or "Apply Changes" to confirm your selection.
- 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.