Three PHP settings commonly need adjusting when users encounter upload errors, white screens, or memory exhaustion on their websites:
- memory_limit — Maximum memory a single PHP script can consume.
- post_max_size — Maximum size of an entire POST request (includes file uploads plus any other form data).
- upload_max_filesize — Maximum size of a single uploaded file.
These values must follow a specific size relationship to work correctly:
memory_limit > post_max_size > upload_max_filesize
For example, if you want to allow 256MB file uploads:
| Directive |
Recommended Value |
| memory_limit |
512M |
| post_max_size |
300M |
| upload_max_filesize |
256M |
- Click the Cog (⚙️) next to the domain you want to edit in your LaunchCDN dashboard
- Click "🔑 Login to Server Panel" button to login to DirectAdmin for that site.
- Click on PHP Settings under the Account Manager heading.
- Under Add New Override, locate each of these three directives one-by-one:
memory_limit
post_max_size
upload_max_filesize
- Set the desired values for each (e.g.
512M, 300M, 256M).
- Click Save.
Changes take effect immediately for the selected domain.