![]() |
|
Guide Change PHP Upload and Memory Limits in aaPanel - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: aaPanel (https://adminsforum.com/Forum-aapanel) +---- Forum: aaPanel Guides & Tutorials (https://adminsforum.com/Forum-aapanel-guides-tutorials) +----- Forum: aaPanel PHP & Extensions Guides (https://adminsforum.com/Forum-aapanel-php-extensions-guides) +----- Thread: Guide Change PHP Upload and Memory Limits in aaPanel (/Thread-guide-change-php-upload-and-memory-limits-in-aapanel) |
Change PHP Upload and Memory Limits in aaPanel - DEV - 10-11-2026 Quick answer In aaPanel, open App Store → Installed → the PHP version your website uses → Setting → Configuration. Review upload_max_filesize, post_max_size and memory_limit together. Save the change, reload that PHP service, then verify the values from the website itself. If the error is HTTP 413, also investigate the web server or proxy limit. Before you start
1. Find the website's PHP version Open Website and select your site's settings. Check its PHP version before returning to App Store. If the site uses PHP 8.4, change PHP-8.4 rather than PHP-8.5. Settings in a version's PHP manager can affect other websites using that runtime, so check those sites too. 2. Open the PHP configuration screen Open App Store → Installed. Find the matching PHP row and click Setting. Choose Configuration in the left-hand menu. ![]() AdminsForum lab: PHP 8.5 Configuration. The pictured values are the lab's current values, not a recommended configuration for every website. 3. Understand the three limits
4. Enter and save the values In Configuration, edit the relevant text boxes. Keep the M suffix where a value is expressed in megabytes. Check that file_uploads is On if the application requires uploads. Click Save and read the resulting status message. Do not change unrelated settings while diagnosing one problem. The separate Limit of upload screen offers one size field in MB: ![]() AdminsForum lab: the Limit of upload shortcut currently shows 50 MB. If you use that shortcut, return to Configuration afterward and inspect both upload_max_filesize and post_max_size. The Configuration screen makes the individual settings easier to review. Do not assume one shortcut also adjusts memory, application limits or Nginx. 5. Reload the selected PHP service Choose Service in the same PHP manager and use Reload. Check that the service remains On. If the reload fails, inspect the PHP logs and correct the setting before repeatedly restarting services. Schedule changes carefully on a busy production server. 6. Verify what the website actually uses First use the application's own server-information or upload-limit page if it has one. For WordPress, check Tools → Site Health → Info → Server, and then its media upload screen. The application's effective limit may be lower than the PHP setting. If you need a small temporary diagnostic page, create a uniquely named PHP file inside the website's document root. Restrict access while testing. This prints only the relevant values rather than exposing a full phpinfo page: Code: <?php
header('Content-Type: text/plain; charset=utf-8');
echo 'PHP version: ' . PHP_VERSION . PHP_EOL;
foreach (['upload_max_filesize', 'post_max_size', 'memory_limit'] as $key) {
echo $key . ': ' . ini_get($key) . PHP_EOL;
}Now upload an ordinary test file below the intended limit using the real application's form. Confirm that it is stored and opens correctly. If larger uploads are needed, increase the test size gradually while watching memory and logs. Troubleshooting
Undo the change Restore the values you recorded, Save, Reload, and repeat the website-side check. If the application becomes unstable, restore first and investigate before increasing limits again. Completion checklist
Reference: PHP manual: core configuration directives. |