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 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:
    16
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. alexandz

    alexandz Well-Known Member

    Joined:
    Oct 28, 2011
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. alexandz

    alexandz Well-Known Member

    Joined:
    Oct 28, 2011
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page