PHP version & configuration
Switch PHP versions and customise memory limits, upload sizes, and execution time on Hoststack.pro.
Hoststack.pro supports multiple PHP versions (PHP 7.4 through PHP 8.3). You can switch the PHP version per domain and customise php.ini settings like memory limit, upload size, and execution time.
Switch PHP version
- Log in to cPanel.
- Go to Software → MultiPHP Manager (or PHP Selector / Select PHP Version depending on your plan).
- Find your domain in the list and select the desired PHP version from the dropdown.
- Click Apply.
Recommendation: Use PHP 8.2 or PHP 8.3 for the best performance and security. PHP 7.x is deprecated and no longer receives security updates.
Common php.ini settings to customise
| Setting | Default | Common value | Purpose |
|---|---|---|---|
| memory_limit | 128M | 256M or 512M | WordPress / WooCommerce |
| upload_max_filesize | 2M | 64M or 128M | Upload large images/plugins |
| post_max_size | 8M | 128M | Must be ≥ upload_max_filesize |
| max_execution_time | 30 | 120 or 300 | Long-running scripts/imports |
| max_input_time | 60 | 120 | Large form submissions |
| display_errors | Off | Off (production) | Never show errors publicly |
Method 1 — MultiPHP INI Editor (cPanel)
- In cPanel, go to Software → MultiPHP INI Editor.
- Select your domain from the dropdown.
- Adjust the values for memory_limit, upload_max_filesize, etc.
- Click Apply.
Method 2 — .htaccess (Apache)
Add these lines to your domain's .htaccess file if your server runs PHP as a module (mod_php or suPHP):
php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 120
Method 3 — php.ini file
Create a file named php.ini in your domain's public_html folder with the settings you want:
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 120
max_input_time = 120
Enable or disable PHP extensions
- In cPanel, go to Software → PHP Selector (or MultiPHP INI Editor → Extensions).
- Select your PHP version.
- Toggle extensions on or off (e.g.
imagick,redis,gd,intl).
Check your current PHP version
Create a file called info.php in your public_html with this content:
<?php phpinfo(); ?>
Visit yourdomain.com/info.php to see all PHP settings. Delete this file after checking — it exposes sensitive server information.
PHP version not available?
Contact [email protected] if the PHP version you need isn't listed. We can check compatibility and enable extensions on request.