← Back home

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

  1. Log in to cPanel.
  2. Go to Software → MultiPHP Manager (or PHP Selector / Select PHP Version depending on your plan).
  3. Find your domain in the list and select the desired PHP version from the dropdown.
  4. 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

SettingDefaultCommon valuePurpose
memory_limit128M256M or 512MWordPress / WooCommerce
upload_max_filesize2M64M or 128MUpload large images/plugins
post_max_size8M128MMust be ≥ upload_max_filesize
max_execution_time30120 or 300Long-running scripts/imports
max_input_time60120Large form submissions
display_errorsOffOff (production)Never show errors publicly

Method 1 — MultiPHP INI Editor (cPanel)

  1. In cPanel, go to Software → MultiPHP INI Editor.
  2. Select your domain from the dropdown.
  3. Adjust the values for memory_limit, upload_max_filesize, etc.
  4. 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

  1. In cPanel, go to Software → PHP Selector (or MultiPHP INI Editor → Extensions).
  2. Select your PHP version.
  3. 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.

₹1 checkout WA