PHP setting limits

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 = Off
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.

  • 2 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

phpinfo

In the phpinfo.php page you can see the PHP version at the top of the file, and you can find the...

Register Globals and other php settings

To turn register globals off, you will need to create a php.ini file in the folder where the...

PHP 5.2 or 5.3 or 5.4 or 5.5 or 5.6

All our servers support (i.e. are capable of running) PHP 5.2 , PHP 5.3, PHP 5.4, PHP 5.5, and...

What version of PHP are you using?

All our servers support (i.e. are capable of running) both PHP 5.2 and PHP 5.3. The default...

Powered by WHMCompleteSolution