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!

upload php 50M

Discussion in 'General Discussion' started by alexandz, Oct 8, 2014.

  1. alexandz

    alexandz Well-Known Member

    Joined:
    Oct 28, 2011
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    Hi

    I have a cPanel account and I am using ntPHPSelector option to use different versions of php on my sites, but for one of my sites have to increase the upload to 50M and I have tried adding a php.ini the following:

    upload_max_filesize = 50M
    post_max_size = 50M

    The point is that if I check the info.php is displayed correctly, but when I try to upload a file that weighs 43M in my typo error I get:

    PHP Warning: POST Content-Length of 50089365 bytes excede the limit of 20971520 bytes in Unknown on line 0, referer: ...

    As I understand it is not considering my php.ini you are only using the one by default.

    If you could help me.

    Thank you,
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Have you tried increasing the "upload_max_filesize" and "post_max_size" values some more? You may want to try increasing the "max_execution_time" and "memory_limit" values in your php.ini file as well.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. alexandz

    alexandz Well-Known Member

    Joined:
    Oct 28, 2011
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    Hi,
    I have the following in my php.ini:

    memory_limit = 128M
    max_execution_time = 60
    upload_max_filesize = 50M
    post_max_size = 50M

    but still shows the same error.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    You could try increasing the upload_max_filesize and post_max_size some more, but keep in mind that it's really better to upload files that large through FTP or File Manager.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. alexandz

    alexandz Well-Known Member

    Joined:
    Oct 28, 2011
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    My upload_max_filesize was increased to 20M and 50M, however this does not work because it shows the above mentioned error:

    PHP Warning: POST Content-Length of 50089365 bytes excede the limit of 20971520 bytes in Unknown on line 0, referer: ...
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Right, what I'm saying is that you should try increasing those limits to higher values (e.g. higher than 50M).

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice