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 und 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 #
- Melden Sie sich bei DirectAdmin an.
- Öffnen Sie die PHP-Version auswählen oder im Bereich „PHP-Einstellungen“.
- Adjust the available options, such as memory limit and upload size.
- Speichern.
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.
Fehlerbehebung #
- Änderung nicht übernommen: 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.
Brauchen Sie Hilfe? #
If you are unsure which PHP value an application needs, our support team can advise over live chat.