1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can I increase upload limit

Discussion in 'General Discussion' started by chacha2000, Oct 8, 2009.

  1. chacha2000

    chacha2000 New Member

    Joined:
    Oct 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    My upload limit is capped at 25MB per file in file manager. I'm a graphic designer and often have single files that exceed this amount. Is there any way to change the upload maximum?
     
    #1 chacha2000, Oct 8, 2009
    Last edited: Oct 8, 2009
  2. chacha2000

    chacha2000 New Member

    Joined:
    Oct 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Here's what someone else suggested in a related thread:

    if you have Cpanel 11 go to WHM and click on 'Service Configuration' then go to 'PHP Configuration Editor' You should then see upload_max_filesize. Change that to what you need.

    I hope this helps.
    __________________
    Hightek Designs - The Future In Websites
    Reseller and Shared Hosting


    I have CP 11, but I don't see "service configuration" anywhere on the whm home page.

    Please help. Thanks.
     
  3. thewebhosting

    thewebhosting Active Member

    Joined:
    May 9, 2008
    Messages:
    1,202
    Likes Received:
    1
    Trophy Points:
    38
    You can increase the upload limit through SSH if you have an access to your server. You will have to edit the php.ini file and increase the upload_max_filesize which is located at /usr/local/lib/php.ini
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,288
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, TX
    If you are not the server's administrator (user root), you may need to contact your hosting company about this.
     
  5. gkgcpanel

    gkgcpanel Member

    Joined:
    Jun 6, 2007
    Messages:
    217
    Likes Received:
    0
    Trophy Points:
    16
    What is a safe limit?

    Only question I have is what is a safe upload max limit? Our cPanel servers have 1200 to 1500 accounts on them. We set the upload max limit to 2M (default). How high should be set it or allow it before it can cause a load problem with the server?
     
  6. thewebhosting

    thewebhosting Active Member

    Joined:
    May 9, 2008
    Messages:
    1,202
    Likes Received:
    1
    Trophy Points:
    38
    You can set the upload limit to 5 MB which is advisable in shared hosting server.
     
  7. gkgcpanel

    gkgcpanel Member

    Joined:
    Jun 6, 2007
    Messages:
    217
    Likes Received:
    0
    Trophy Points:
    16
    Fascinating...

    I have been informed by one of my clients that he found a hosting provider that will allow up to 64MB on their max_upload_size value in php.ini (server wide).

    I've contacted that hosting provider and verified this to be true. So how can they do that and not overload their servers???

    I really need an answer here from the cPanel staff.

    Thanks,
    Peter
     
  8. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,558
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    It is entirely possible to use larger upload limits for the File Manager and not induce extreme server load. As far as what limit to use, this decision must be made by the service provider that controls the server; a preferred limit could vary depending on the server's actual usage (e.g., how frequently the hosted users use the functionality), and also depending upon the available disk storage space for each account. If the hosted accounts are more limited in how much space they have, it may be acceptable to use a lower number for the limit; or if the server hardware is and disk storage space is on the "cutting-edge" (e.g., the latest and greatest) then it may be more acceptable to use a higher number for the limit.

    There is not a perfect limit to use nor is there a single number that fits the needs of everyone; this is a Systems Administration decision and depends upon the needs of the service provider.
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    12,117
    Likes Received:
    31
    Trophy Points:
    48
    Location:
    Pennsylvania
    Not sure I'm following this thread correctly, but the "cap" for File Manager is located in WHM > Tweak Settings > System, section.

    The maximum file size in MB allowed for upload through cPanel File manager. Use "unlimited" for unlimited

    This is different than upload_max_filesize and post_max_size in your php.ini

    HTH
     
  10. linux7802

    linux7802 Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    Solution

    If your server is suexec enabled then you can increase the upload limit for your each an every domains hosting account individually by using php.ini.If you are not sure that your server is Suexec or not? then refer following URL

    Simply check server is SuExec or not? | Linux Servers cPanel webhosting blog

    Editing php.ini is the easiest way, but if your server is not SuExec enabled then you can increase the upload limit by using .htaccess file with the following code.

    RewriteEngine On

    php_value upload_max_filesize 30M
     
  11. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,558
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    Infopro is correct; to modify the maximum file size for files loaded via cPanel File Manager, this must be done via the Tweak Settings page in WHM (e.g., via root access to WHM).

    There are also limits you can define in a PHP configuration (php.ini) file, but for the File Manager this is done via WHM Tweak Settings.
     

Share This Page