Configuring php.ini Settings
Method 1: DirectAdmin PHP Configuration Panel
DirectAdmin → PHP Configuration → adjust values → Save.
Method 2: .user.ini File
Create public_html/.user.ini:
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 120
max_input_vars = 3000
Changes take effect after a few minutes (PHP-FPM reload).
Recommended Settings for WordPress
| Setting | Recommended |
|---|---|
memory_limit |
256M |
upload_max_filesize |
64M |
post_max_size |
64M |
max_execution_time |
120 |
max_input_vars |
3000 |