PHP configuration files and priorityYou can use local .user.ini and php.ini configuration files to change various PHP interpreter settings. These files can be easily created via the Control Panel -> File Manager interface. By default, when a new subdomain is created through the hosting Control Panel -> Subdomains section, a php.ini file will be created automatically in its document root. The php.ini file for your main domain (www subdomain) will be created when your account is activated. For some accounts these default php.ini files may not exist due to legacy settings. PHP configuration filesMain differences between .user.ini and php.ini files
Global php.ini fileThe global php.ini file for your account is located in your home directory (/home/USERNAME/php.ini). The settings in this php.ini file are applied globally for all your PHP scripts, unless they are overridden by a local php.ini or .user.ini file. Default content of php.ini files on our serversAny automatically generated php.ini files on our servers will have the following content: post_max_size = 60M Note: If you plan to use local php.ini files, we recommend that you set these directives in them for compatibility reasons. Of course, you can modify the values for these directives to your liking. For example, if you do not want your scripts to use the timezone of the physical location of the server, you can change the default ${TZ} value of the date.timezone directive. Restore global or main subdomain php.ini file settings to defaultYou can restore the global php.ini file for your account or the main php.ini files of subdomains to default by using the Restore to default button from the hosting Control Panel -> PHP Settings section. PHP configuration files priorityPHP interpreter (CGI and FPM handlers)The precedence order (from highest to lowest) of configuration files of the PHP interpreter is listed below:
PHP-CLIFor the command line PHP interpreter (php.cli), the configuration files have the following precedence:
|