Innovate | Connect | Transform
ContactService statusUSD $

GICT knowledge base

How to adjust php settings in DirectAdmin

Published

1.   Login to  https://my.interserver.net/

login

2. Click on the Gear icon.

 

Adjust PHP Settings to Increase Memory Limit - Step 3

3. Click on click here to log in to the DirectAdmin

Adjust PHP Settings to Increase Memory Limit - Step 2 (2)

4. Navigate to Account Manager → PHP Settings.

Adjust PHP Settings to Increase Memory Limit - Step 6

5. In the Setting option, you have a dropdown with many configurable options. For example, if you want to configure the memory_limit; select the memory_limit from the scrollable Setting option.

Adjust PHP Settings to Increase Memory Limit - Step 8

6. Enter the value for the selected Setting. For the example above, we have selected memory_limit. By default, the memory_limit comes with pre-defined values (64M, 128M, etc.), but also you can enter the custom value as per the requirements.

Adjust PHP Settings to Increase Memory Limit - Step 10

7. Click on Add.

Adjust PHP Settings to Increase Memory Limit - Step 11

 

The PHP Settings allow you to configure and manage various aspects of your PHP environment. These settings include:

  1. display_errors: Controls whether PHP should display error messages.
  2. error_reporting: Determines the level of error reporting. It specifies which types of errors should be reported.
  3. file_uploads: Enables or disables the ability to upload files through PHP.
  4. include_path: Defines the directories to search for included files.
  5. log_errors: Determines whether PHP should log errors to a file.
  6. mail.force_extra_parameters: Specifies additional parameters to be passed to the mail() function.
  7. max_execution_time: Sets the maximum execution time for a PHP script.
  8. max_input_time: Defines the maximum time PHP should spend parsing input data.
  9. max_input_vars: Specifies the maximum number of input variables PHP should accept.
  10. memory_limit: Sets the maximum amount of memory a PHP script can allocate.
  11. post_max_size: Specifies the maximum size of POST data that PHP can handle.
  12. register_globals: Enables or disables the use of register_globals, which can pose security risks.
  13. session.gc_maxlifetime: Defines the maximum lifetime of a session in seconds.
  14. short_open_tag: Allows the use of short PHP tags (<? ?>) instead of full PHP tags (<?php ?>).
  15. upload_max_filesize: Sets the maximum size of uploaded files.
  16. zlib.output_compression: Enables or disables output compression using zlib.

These settings can be adjusted in your PHP configuration file (php.ini) or using runtime functions in your PHP code to control the behavior and performance of your PHP applications.

 

If you have got any questions please feel free to contact us.

 

 

Account services are unavailable until the production backend is configured.