Available PHP Versions

EGPHP supports multiple PHP versions to ensure compatibility with your applications:

Version Status Recommended For
PHP 8.3 New projects, modern frameworks
PHP 8.2 Most WordPress sites, Laravel
PHP 8.1 Stable Production sites, broad compatibility
PHP 8.0 Security Only Legacy applications
PHP 7.4 End of Life Old applications (upgrade recommended)
Recommendation: Use PHP 8.2 or 8.3 for the best balance of performance, security, and compatibility.

Switching PHP Versions

  1. Log in to EGPNL
  2. Go to Domains and select your domain
  3. Find PHP Version or PHP Settings
  4. Select your desired PHP version from the dropdown
  5. Click Save or Apply
Note: Changes take effect immediately. If you experience issues, you can switch back to the previous version.

Common PHP Settings

You can customize PHP settings per domain:

Memory Limit

Default: 256M - Increase for resource-intensive applications like WooCommerce.

Max Execution Time

Default: 300 seconds - Increase for long-running scripts or imports.

Upload Max Filesize

Default: 64M - Increase for uploading large files through your application.

Post Max Size

Default: 64M - Should be equal to or larger than upload_max_filesize.

Configuring PHP Settings

  1. Go to your domain in EGPNL
  2. Select PHP Settings
  3. Modify the values as needed
  4. Click Save Changes

Using php.ini

For advanced settings, create a php.ini file in your public_html folder:

memory_limit = 512M
max_execution_time = 600
upload_max_filesize = 128M
post_max_size = 128M
max_input_vars = 5000

Checking Your PHP Version

To verify which PHP version is running:

  1. Create a file called phpinfo.php in your public_html
  2. Add this code: <?php phpinfo(); ?>
  3. Visit yourdomain.com/phpinfo.php in your browser
  4. Delete the file after checking (security best practice)
Security: Always delete phpinfo.php after use. It exposes sensitive server information.

PHP Version Compatibility

WordPress

  • Recommended: PHP 8.1 or 8.2
  • Minimum: PHP 7.4
  • Check plugin compatibility before upgrading

Laravel

  • Laravel 10+: PHP 8.1 or higher
  • Laravel 9: PHP 8.0 or higher

Drupal

  • Drupal 10: PHP 8.1 or higher
  • Drupal 9: PHP 7.4 or higher