Back to Knowledge Base
Knowledge Base PHP & Server Configuration How to Change Your PHP Version

How to Change Your PHP Version

PHP & Server Configuration 30/11/2026

Steps

  1. Log in to DirectAdmin → PHP Configuration.
  2. Select the domain.
  3. Choose the PHP version (e.g. 8.2, 8.3).
  4. 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.

Was this article helpful?