Self Help Documentation
< All Topics

tool/setphpini

Description

Sets the php.ini data for an existing domain from a given SPanel user account.

Parameters

FieldTypeRequiredDescription
tokenstringYesAuthorizing API token – check API Basics for more information.
accountuserstringYesThe SPanel user account that is being managed or viewed.
actionstringYesThe category and function being executed.
domainstringYesThe domain to set the php.ini data for.
basicarrayNoArray with the basic php.ini data. If left empty (not sent), the function will expect to use the ‘advanced’ parameter.

Elements list – everything is required

allow_url_fopen
Enables the URL-aware fopen wrappers that enable accessing URL object like files.
Bool: 1/0

display_errors
Determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.
String: ‘STDERR’ or ‘STDOUT’

max_execution_time
Sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server. The default setting is 30. When running PHP from the command line the default setting is 0.
int

max_input_time
This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. Timing begins at the moment PHP is invoked at the server and ends when execution begins. The default setting is -1, which means that max_execution_time is used instead. Set to 0 to allow unlimited time.
int

max_input_vars
Sets the maximum number of input variables allowed per request and can be used to deter denial of service attacks.
int

memory_limit
Sets the maximum amount of memory in bytes that a script is allowed to allocate.
string

post_max_size
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize.
string

upload_max_filesize
The maximum size of an uploaded file.
string
advancedstringNoString with advanced php.ini data. The raw contents of this string will become the contents of the php.ini file. If this parameter is empty, ‘basic’ should be used.

Warning
The ‘basic’ parameter will overwrite any custom changes in the php.ini.

Example

You can find more information about the Endpoint URL in our API Basics article.

Output

Table of Contents