Results 1 to 2 of 2

Thread: My users can't upload more than 2 MB

  1. #1
    trickyBizzness's Avatar
    trickyBizzness is offline Certified Glow Sage
    Join Date
    Jul 2005

    Default My users can't upload more than 2 MB


    I need to modify the maximum size of uploaded files in my script installations which is limited to 2 MB as set by the limit in the server.

    I cannot find where I can do this in WHM or in cPanel. Could you please help me do this?

    20 MB should be enough.

  2. #2
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Behind your monitor


    You can fix this by creating a php.ini file in the public_html folder, or the folder where the script is installed. Once you create the empty file, add the following string:

    upload_max_filesize = 20M
    post_max_size = 20M
    If you do not add both values to php.ini, it is likely to fail for one reason or another.

    Or, if you want to set this as the server's global default, edit:

    and set the values there for all accounts. Then if your server defaults are still not enough, your users can edit the local php.ini files accordingly.

    If these post and upload values get too large, you may run out of memory as well.

    The directive for this is called:

    And if your users have exceedingly slow Internet connections, they might also encounter a timeout trying to upload.

    The directive for that is called:

    Be careful when allowing users to set these values and be even more careful when setting these as global defaults as setting things too high can result in unstable servers.
    Last edited by Matt; 08-20-2010 at 06:38 PM.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | GlowHost's Facebook | Follow us on Twitter | GlowHost on Google+

Similar Threads

  1. What mb to buy? newbie here
    By tqm198 in forum General Chit-Chat
    Replies: 1
    Last Post: 11-28-2008, 05:36 AM
  2. Upload Binary
    By Trzl in forum General Support
    Replies: 3
    Last Post: 01-23-2008, 12:41 PM
  3. Dreamweaver Upload and general help
    By boonefly in forum General Support
    Replies: 6
    Last Post: 10-03-2005, 12:13 PM
  4. What is the easiest way to upload my site via FTP?
    By Matt in forum Knowledge Base
    Replies: 1
    Last Post: 03-01-2005, 11:47 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16