Hosting Question? Find the Solution -

KNOWNHOST KNOWLEDGE BASE

Browse our Guides, Articles, and How-To's

How to adjust PHP Settings in DirectAdmin?

Like MultiPHP INI Editor in cPanel, DirectAdmin introduced PHP Settings. Using the same option, you can manage various settings of PHP, such as managing memory limit, error reporting, etc. Learn how to adjust PHP settings in DirectAdmin?


1. First, to login into DirectAdmin control panel visit, 

https://your-domain.com:2222 or https://IP-address:2222 or https://server-hostname:2222.

login-into-directadmin

2. Navigate to Account Manager → PHP Settings.

account manager php settings

3. 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.

memory limit php settings

4. Next, 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.

enter the php settings values directadmin

5. Finally, click on Add.

How to adjust PHP Settings in DirectAdmin

Using the PHP Settings you can configure/manage the following php settings,

display_errorserror_reportingfile_uploads
include_pathlog_errorsmail.force_extra_parameters
mex_execution_timemax_input_timemax_input_vars
memory_limitpost_max_sizeregister_globals
session.gc_maxlifetimeshort_open_tagupload_max_filesize
zlib.output_compression

Conclusion

We’ve gone over how to adjust the PHP settings in the DirectAdmin control panel. For the development purpose and to meet the requirements for the development project, we might require updating the PHP settings, and the elaborated above steps will make sure to solve the problem.

KnownHost offers 365 days a year, 24 hours a day, all 7 days of the week best in class technical support. A dedicated team ready to help you with requests should you need our assistance. You’re not using KnownHost for the best webhosting experience? Well, why not? Check with our Sales team to see what can KnownHost do for you in improving your webhosting experience.