Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

upload files limits issue & php.ini values

Discussion in 'General Discussion' started by kiti, Sep 12, 2017.

  1. kiti

    kiti Member

    Joined:
    Sep 16, 2015
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    france
    cPanel Access Level:
    Root Administrator
    Hi,

    In the multiPHP ini editor there is an option to setup the upload_max_filesize
    However, on its own, this setting is useless for web applications like WordPress or drupal.
    The post_max_size in php ini should be as much as the upload_max_filesize otherwise it does not change anything.

    Let me give you an example:

    I install WHM, i go to multiphp ini editor and I setup the upload_max_filesize to 64M hoping my customers will be able to upload files that will be maximum 64Mb to their wordpress websites.

    However, behind in php.ini, the post_max_size = 8M. So in fact, my customers will only be able to upload max. 8M files.

    I would need to go to the editor mode of php.ini and change post_max_size = 64M

    This thread talks about this issue:
    PHP post_max_size overrides upload_max_filesize
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,220
    Likes Received:
    1,376
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @kiti,

    We're including post_max_size to the Basic Mode of the MultiPHP INI Editors in cPanel version 68.

    Thanks!
     
Loading...

Share This Page