How do I increase PHP limits?
22 viewsHow do I increase PHP limits?
Overview
PHP limits control how much resources your website can use, such as memory, upload size, and execution time. Increasing these limits can help fix issues with large uploads, plugins, or slow scripts.
Step-by-Step Guide
Log in to your DirectAdmin control panel
Go to Account Manager
Click PHP Settings or Select PHP Version (depending on your setup)
Locate the PHP options or “php.ini settings”
Adjust the following values as needed:
memory_limit upload_max_filesize post_max_size max_execution_time
Save your changes
Recommended Settings (typical WordPress sites)
memory_limit: 256M upload_max_filesize: 64M or higher post_max_size: 64M or higher max_execution_time: 120–300
Important Notes
Setting limits too high may affect server performance Some hosting plans may restrict maximum values Changes may take a few minutes to apply You may need to clear cache after updating settings
Common Issues & Fixes
Changes not taking effect Wait a few minutes or restart PHP if option is available
Still getting upload errors Ensure upload_max_filesize and post_max_size match or exceed file size
500 error after changes Revert settings to default values
Need Help?
If you are unsure what values to use or your changes are not working, our support team can safely adjust your PHP limits for you.