Select location & language
  • Österreich German
  • Australia English
  • België Dutch
  • Canada English
  • Schweiz German
  • Deutschland German
  • Eesti English
  • Ελλάδα English
  • España Spanish
  • France French
  • Hrvatska English
  • Italia English
  • Latvija English
  • Lietuva English
  • Nederland Dutch
  • Norge Norwegian
  • Polska Polish
  • Portugal Portuguese
  • Slovensko English
  • Suomi Finnish
  • Sverige Swedish
  • United Kingdom English
  • United States English
  • American Samoa English
  • Andorra English
  • Anguilla English
  • Antarctica English
  • Bermuda English
  • British Indian Ocean Territory English
  • British Virgin Islands English
  • Cayman Islands English
  • Christmas Island English
  • Città del Vaticano English
  • Cocos (Keeling) Islands English
  • Falkland Islands English
  • French Southern Territories English
  • Gibraltar English
  • Guadeloupe French
  • Guam English
  • Guernsey English
  • Guyane française French
  • Heard & McDonald Islands English
  • Ireland English
  • Isle of Man English
  • Jersey English
  • Liechtenstein German
  • Luxembourg French
  • Malta English
  • Martinique French
  • Mayotte English
  • Monaco French
  • Montserrat English
  • New Zealand English
  • Norfolk Island English
  • Northern Mariana Islands English
  • Pitcairn Islands English
  • Puerto Rico Spanish
  • Réunion English
  • San Marino English
  • Slovenija English
  • St. Barthélemy English
  • St. Helena English
  • St. Martin English
  • St. Pierre & Miquelon English
  • Svalbard & Jan Mayen English
  • Turks & Caicos Islands English
  • U.S. Outlying Islands English
  • U.S. Virgin Islands English
  • Åland Islands English
  • Κύπρος English
  • Црна Гора English

How do I adjust PHP settings with a custom php.ini in DirectAdmin?

1 min read

Some applications need PHP settings changed, such as more memory, a longer execution time, or a larger upload limit. In DirectAdmin you can adjust these using PHP settings or a custom php.ini file. This guide explains the options.

Common settings you might change #

  • memory_limit: how much memory a script can use.
  • upload_max_filesize and post_max_size: the largest file you can upload.
  • max_execution_time: how long a script may run.
  • max_input_vars: useful for large forms or complex themes.

Option 1: PHP settings in DirectAdmin #

  1. Log in to DirectAdmin.
  2. Open the Select PHP Version or PHP settings area.
  3. Adjust the available options, such as memory limit and upload size.
  4. Save.

Option 2: A custom php.ini #

If a setting is not exposed in the panel, you can create a php.ini file in your site’s folder with the values you need, for example a higher memory_limit. Your PHP version’s handler reads these custom values.

Checking your changes #

Create a PHP info page or use your application’s system report to confirm the new values are active. If a change does not take effect, clear any caching and reload.

Troubleshooting #

  • Change not applied: confirm you edited the settings for the correct PHP version.
  • Site errors after a change: revert the value; the setting may be too high or unsupported.

Need help? #

If you are unsure which PHP value an application needs, our support team can advise over live chat.

What are your feelings