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

Comment puis-je modifier les paramètres PHP à l'aide d'un fichier php.ini personnalisé dans DirectAdmin ?

1 min lire

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.

Paramètres courants que vous pourriez modifier #

  • memory_limit : how much memory a script can use.
  • upload_max_filesize et post_max_size : the largest file you can upload.
  • max_execution_time : la durée d'exécution d'un script.
  • max_input_vars : useful for large forms or complex themes.

Option 1: PHP settings in DirectAdmin #

  1. Connectez-vous à DirectAdmin.
  2. Ouvrir le Sélectionner la version de PHP or PHP settings area.
  3. Adjust the available options, such as memory limit and upload size.
  4. Enregistrer.

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.

Dépannage #

  • Modification non appliquée : 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.

Besoin d'aide ? #

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

Quels sont vos sentiments ?