How to Increase PHP’s upload_max_filesize value using CloudLinux Selector in DirectAdmin?

Contents

    You can modify PHP’s upload_max_filesize as per your needs using CloudLinux’s PHP Selector in DirectAdmin.

     

    1. Log-in to your DirectAdmin account.

    2. In the Extra Features section, click on the Select PHP version icon or type Select PHP in the navigation filter box. The option will appear. Click on it.

    3. Click on the Options menu.

    Note: If the Options page shows an error related to the native PHP version, change it to a non-native version first.

     

    4. Look for upload_max_filesize and click on the drop-down option displayed in front of it. Then choose the appropriate limit as per your requirements.

    Updated on December 11, 2020
    Was this article helpful?

    49 responses to “How to Increase PHP’s upload_max_filesize value using CloudLinux Selector in DirectAdmin?”

    1. Guillermo Bentley Avatar

      Handy walkthrough. Bumping that value in the selector instead of editing files by hand saves a lot of grief.

    2. Eric Jones Avatar

      Honestly curious why anyone hits the upload limit here. Is it mostly big theme zips or database imports?

    3. Nannette Longmore Avatar

      Lovely, tidy guide. My uploads stopped failing right after.

    4. Eric Jones Avatar

      Why does every host hide this setting somewhere different?

    5. Toby Winton Avatar

      Thank you for writing this up. Bookmarked for the next client site.

    6. Bruce Swett Avatar

      Appears simple on paper, yet it took me an hour the first time.

    7. Carlota Tedeschi Avatar

      Clear, calm and to the point. More guides like this please.

    8. Trevor Halford Avatar

      Why is this always hidden three menus deep? Appreciate the shortcut.

    9. Sheryl Viner Avatar

      Neat trick. I will try it on my staging site first, just in case.

    10. Eric Jones Avatar

      Finally, an answer that is not buried under forum arguments.

    11. Jerrell Luttrell Avatar

      Does this apply to shared plans as well, or only dedicated?

    12. Eric Jones Avatar

      Thanks. My photo uploads were failing and now they behave.

    13. Eric Jones Avatar

      Great walkthrough, though I wish hosts just set this sensibly from day one.

    14. Eric Jones Avatar

      Ten minutes of fiddling and it was a single dropdown. Classic.

    15. Eric Jones Avatar

      Saved me a support ticket and an awkward email.

    16. Eric Jones Avatar

      Quick question: do I need to restart anything afterward?

    17. Eric Jones Avatar

      That selector screen confuses me every time. This helped a lot.

    18. Eric Jones Avatar

      Handy. Would love a follow-up on post_max_size too.

    19. Eric Jones Avatar

      Took me three tries and a lot of coffee, but the limit finally stuck.

    20. Eric Jones Avatar

      Worked first try on my DirectAdmin box, thanks for the clear steps.

    21. Eric Jones Avatar

      Why would anyone leave the default upload limit at 2M? Cruel.

    22. Eric Jones Avatar

      Short and sweet. Exactly what I needed at midnight.

    23. Eric Jones Avatar

      Is 64M really enough, or does everyone just max it out?

    24. Eric Jones Avatar

      Bookmarking this. Hosting panels never make this easy to find.

    25. Eric Jones Avatar

      Anyone know if this survives a PHP version switch?

    26. Eric Jones Avatar

      Nice, finally a fix for those upload errors that kept ruining my Friday.

    27. Eric Jones Avatar

      Honestly, why does this setting even need a Selector? Mine always resets.

    28. Eric Jones Avatar

      Simple fix, clearly explained. Wish every host doc was this direct.

    29. Eric Jones Avatar

      Quick and painless. Why do hosts hide this setting so deep?

    30. Eric Jones Avatar

      Tried three other guides first. This was the only one that actually stuck.

    31. Eric Jones Avatar

      Nice one. Does this also raise the limit for plugin zip uploads in the dashboard?

    32. Eric Jones Avatar

      Saved me a support ticket. Plain steps, and it just worked.

    33. Eric Jones Avatar

      Curious what limit you’d recommend for a typical blog with video embeds?

    34. Eric Jones Avatar

      Clean steps, no fluff. This is how upload limit guides should look.

    35. Eric Jones Avatar

      Does the Selector change apply instantly or does it need a restart first?

    36. Eric Jones Avatar

      Bookmarked. I’ll be sending this to every client who emails about upload errors.

    37. Eric Jones Avatar

      What made you write this one up? Seems like a question every host gets weekly.

    38. Eric Jones Avatar

      Worked first try on my reseller box. Rare for a tutorial these days.

    39. Eric Jones Avatar

      Do you also need to bump post_max_size, or is this setting enough by itself?

    40. Eric Jones Avatar

      Exactly what I needed for a client’s photo gallery. Thanks for keeping it simple.

    41. Eric Jones Avatar

      Anyone know if this survives a PHP version switch, or do I redo it?

    42. Eric Jones Avatar

      Short and sweet. The Selector route beats editing config files by hand.

    43. Eric Jones Avatar

      Why does the default limit sit so low anyway? Always catches people out.

    44. Eric Jones Avatar

      Changed it, restarted the PHP app, and the big theme zip finally went through.

    45. Eric Jones Avatar

      Quick question: does the new limit apply to every domain on the account or just one?

    46. Eric Jones Avatar

      Wish I’d found this before wasting an afternoon in php.ini.

    47. Alisia Spaull Avatar

      Is there a sensible upper limit before the server starts to struggle with big files?

    48. Aliza Branham Avatar

      Our client kept hitting the 2MB wall on uploads, this sorted it. Nice and short.

    49. Eric Jones Avatar

      Raising upload_max_filesize fixed my stuck media uploads in minutes. Simple and clear steps.

    Leave a Reply

    Your email address will not be published. Required fields are marked *