How to Change Your PHP Version
Steps
- Log in to DirectAdmin โ PHP Configuration.
- Select the domain.
- Choose the PHP version (e.g. 8.2, 8.3).
- Click Save.
Recommended PHP Versions
| Application | Recommended PHP |
|---|---|
| WordPress | 8.2 or 8.3 |
| Laravel | 8.2 or 8.3 |
| Magento 2 | 8.2 |
| Legacy apps | 7.4 or 8.0 |
Always check your application's official documentation.
Verify Active Version
Create public_html/phpinfo.php:
<?php phpinfo();
Visit https://yourdomain.com/phpinfo.php. Delete this file immediately after checking.