1. Knowledge Base
  2. >
  3. Results
  4. >
  5. PHP Settings that Cannot be Changed

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 stability of the server. Dedicated Server 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.

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 CANNOT 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 server.

VPS and Dedicated Servers

VPS and Dedicated server 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. Once the preferred PHP version is selected, other PHP settings will be displayed. If you would like 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
magic_quotes_gpc = Off

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 web designer or the developer of your script. 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 would like.
  6. Click the Save button on the upper right-hand side.