Available PHP Versions
EGPHP supports multiple PHP versions to ensure compatibility with your applications:
| Version | Status | Recommended For |
|---|---|---|
| PHP 8.3 | Latest | New projects, modern frameworks |
| PHP 8.2 | Recommended | 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
- Log in to EGPNL
- Go to Domains and select your domain
- Find PHP Version or PHP Settings
- Select your desired PHP version from the dropdown
- 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
- Go to your domain in EGPNL
- Select PHP Settings
- Modify the values as needed
- 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:
- Create a file called
phpinfo.phpin your public_html - Add this code:
<?php phpinfo(); ?> - Visit
yourdomain.com/phpinfo.phpin your browser - 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
Was this article helpful?