To change the PHP version in DirectAdmin with CloudLinux PHP Selector, you can follow these steps:
- Log in to DirectAdmin: Open your web browser and navigate to the DirectAdmin control panel. Log in with your username and password.
- Navigate to “Select PHP Version”: Once logged in, find the “Select PHP Version” or a similar option. This is typically located in the “Advanced Features” section. It may also be labeled as “PHP Selector” or something similar.
- Choose the desired PHP version: Inside the “Select PHP Version” section, you should see a list of available PHP versions. Select the version you want to switch to from the dropdown menu.
- Apply the changes: After selecting the desired PHP version, there should be an “Apply” or “Save” button. Click on it to apply the changes.
- Verify the PHP version: Once the changes are applied, you can verify the PHP version by creating a PHP info file or checking the PHP version in the command line. To create a PHP info file, create a new file (e.g., info.php) in your web directory with the following content:
<?php phpinfo(); ?>
Access this file through your web browser (e.g., http://yourdomain.com/info.php) and check the PHP version displayed.
Note: The availability of these options may depend on your specific hosting environment and server configuration. If you can’t find the PHP version selector in DirectAdmin, it’s possible that your hosting provider has disabled this feature or uses a different method for managing PHP versions.
Always make sure that the PHP version you choose is compatible with your website’s code. Some applications may require specific PHP versions, and changing the PHP version may affect the functionality of your site.
You can also watch video tutorial on youtube: