Knowledge Base
Save up to  70% off.  Start your website today!

PHP Settings that Cannot be Changed


Shared packages (including Cloud Sites and Resellers) are hosted in carefully managed environments. They have certain limits on what can be changed to maintain the server's stability. Dedicated hosting and VPS customers may change all the settings in the php.ini file and do not have the same limits as Shared and Reseller hosting.

This article discusses the following topics.

Shared (Including Cloud Sites and Resellers)

PHP has been configured to use the following settings on our shared and reseller servers:

safe mode = Off (cannot adjust)
memory_limit = 256M (MAXIMUM)
max_execution_time = 30 (MAXIMUM in seconds)
max_input_time = 60 (MAXIMUM in seconds)
post_max_size = 516M (MAXIMUM)
upload_max_filesize = 512M (MAXIMUM)
enable_dl = Off (cannot adjust)

The above settings either CAN NOT be changed or exceeded on Shared and Reseller accounts. These limits are set to prevent extremely high resource usage in shared environments. We have found that most PHP scripts will work within these limits, and the scripts that require more resources are best suited for a VPS or Dedicated hosting.

VPS and Dedicated Servers

VPS and Dedicated hosting customers can change these settings to any desired value by following the steps below.

  1. Navigate to WHM.
  2. Under the Software section, select MultiPHP INI Editor.

    WHM Menu MultiPHP INI Editor

  3. Select the Basic Mode tab, then choose the PHP version you want to use from the dropdown.

    WHM MultiPHP INI Editor - Select PHP Version

  4. Other PHP settings will be displayed once the preferred PHP version is selected. If you want to make the changes by editing the INI file manually, then you can follow the steps below.
Important Note: Although you can change the settings on a dedicated server or VPS to anything you want, an incorrectly configured server will perform poorly or even crash. Unless you have specific reasons to change the PHP settings, it is recommended that you leave them at the default settings or use the recommended settings for the script or application you are using.

Settings you can change

We also set the following:

register_globals = On 

max_input_vars = 1000

These two settings and any other PHP settings not aforementioned can be changed using a custom php.ini file located in the same folder as the script that requires the settings.

Note: HostGator cannot know why you want or need to change these settings. You are modifying this at the advice of your script's web designer or developer. HostGator can only show you where to make the change.
  1. While on the Basic Mode tab, modify the settings you want to change.
  2. Click the Apply button at the bottom of the page.
  3. Once the changes have been applied, you'll see a "Successfully Applied" message on the upper right-hand side of the screen.

    HostGator WHM MultiPHP INI Editor Changes Successfully Applied

  4. Select the Editor Mode tab.

    WHM MultiPHP INI Editor - Editor Mode

  5. Edit the file as you like.
  6. Click the Save button on the upper right-hand side.


Did you find this article helpful?

* Your feedback is too short