HostGator.com » Support Portal

PHP limits that cannot be changed

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

safe mode = off
memory_limit = 64M MAXIMUM
max_execution_time = 30 MAXIMUM
post_max_size = 64M MAXIMUM
upload_max_filesize = 64M MAXIMUM
enable_dl = Off

The above settings CANNOT be changed on a shared and reseller account. These limits are set to prevent extremely high resource usage in shared environments. We have found that a majority of the PHP scripts will work within these limits, and the scripts that require more resources are best suited for a dedicated server. Dedicated servers can have their limits raised to any value required.

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 nor need to change these settings. You are changing these at the advice of your webdesigner or the developer of your script. HostGator can only show you where to make the changes.


Article Comments

cdm
After installing Moodle using Fantastico, Moodle gives me this security warning:
"SECURITY WARNING!
To operate properly, Moodle requires
that you make certain changes to your current PHP settings.
You must set register_globals=off.
This setting is controlled by editing your php.ini, Apache/IIS
configuration or .htaccess file."

This conflicts with Hostgators setting: "register_globals = On".

Any comments on how to resolve this?

Thanks


HostGator
Yes, this article suggests you change the setting in your php.ini file.

If you cannot locate that file, or do not understand how to set "register_globals = Off", then please contact us via phone or live chat.


If you have read our knowledge base and still have questions or need more information, please contact us via phone or live chat for immediate assistance.

Post Comment