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.

Increasing max upload size > 2GB

Discussion in 'General Discussion' started by Kevin Wenger, Aug 2, 2012.

  1. Kevin Wenger

    Kevin Wenger Registered

    Joined:
    Jul 31, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    It's possible to increase the maximum value (2,047) for the max upload size setting ?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can modify this value in the php.ini file:

    Code:
    # /usr/local/lib/php.ini
    However, it's not recommended to use Apache and PHP for uploading files that large. The better method is to use FTP to upload files of that size.

    Thank you.
     
  3. Kevin Wenger

    Kevin Wenger Registered

    Joined:
    Jul 31, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks a lot ! :)

    I founded an other solution :
    I change the value here "Main >> Service Configuration >> PHP Configuration Editor" and not in here "Main >> Server Configuration >> Tweak Settings"
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Tweak Settings value for max_upload_size for PHP is for cPanel-based areas such as PhpMyAdmin or webmail clients. Anything internal to cPanel would be impacted.

    PHP scripts on websites would be impacted by the global php.ini file at /usr/local/lib/php.ini or via the individual php.ini files if you are using suPHP on the server. The global php.ini file is edited using WHM > Server Configuration > PHP Configuration Editor area as you did mention.

    I'm delineating the above details to make it clear which does which, since the file you use or area you select matters based on what you are trying to fix.
     
Loading...

Share This Page