Results 1 to 11 of 11
  1. #1

    Increase Upload limit?

    I wonder is it possible to increase the upload limit? Php has a limit of 2mb. But I wonder is it possible to increase it. I see some other file hosting can uload a much larger file..
    Off Topic Forum - An Off Topic discussion Forum.

  2. #2
    Join Date
    Jan 2002
    Posts
    1,033

    Re: Increase Upload limit?

    Originally posted by DT-Spirit
    I wonder is it possible to increase the upload limit? Php has a limit of 2mb. But I wonder is it possible to increase it. I see some other file hosting can uload a much larger file..
    It is possible if you have root access or can define your own php.ini file for your account.

  3. #3
    Do you have your own dedicated server ? If yes, you can edit php.ini. Otherwise you can request your host to increase the limit. We have increased the limit for clients after reviewing their needs and I am sure your host will be willng to do the same for you.
    Like us on Facebook to qualify for discounts!
    http://www.sprintserve.net
    Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
    Services: | Managed Multiple Cores 64bit Servers | Server Management |

  4. #4
    Join Date
    Jan 2002
    Posts
    1,033
    Keep in mind that you may also have to modify the mysql configuration file (usually my.cnf) depending on the application. Make sure that the values are set properly to keep from overloading the server and causing other problems.

  5. #5
    I have a dedicated server and can you tell me what I need to do? like step by step if possible.
    Off Topic Forum - An Off Topic discussion Forum.

  6. #6
    On Linux

    log into server as root
    locate php.ini
    pico php.ini

    Ctrl + W
    search for: upload_max_filesize
    change from 2 to anything higher.

    Ctrl + X
    Y
    Restart Apache


    Or..

    Upload a .htacess to the account where you wish to upload files larger than 2M


    php_value upload_max_filesize 8M


    call it .htaccess

  7. #7
    how come there arn't anything in php.ini
    Off Topic Forum - An Off Topic discussion Forum.

  8. #8
    Sorry for double post..
    I found it.. but I wonder what are the disadvantages for increasing the upload limit.
    Off Topic Forum - An Off Topic discussion Forum.

  9. #9
    the only disadvantage is that if you have many concurrent uploads, you may use up excessive amounts of RAM.
    Like us on Facebook to qualify for discounts!
    http://www.sprintserve.net
    Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
    Services: | Managed Multiple Cores 64bit Servers | Server Management |

  10. #10
    Join Date
    Nov 2004
    Location
    Bosnia and Herzegovina/Banja Luka
    Posts
    60
    Well if you have like 10 clients and just one need bigger upload limit there is a different way true .htaccess. I on my site upload limit is 2 MB sorry was because i add this to my .htaccess
    php_value upload_max_filesize 50M

  11. #11
    Join Date
    Jan 2002
    Posts
    1,033
    Originally posted by LaMpiR
    Well if you have like 10 clients and just one need bigger upload limit there is a different way true .htaccess. I on my site upload limit is 2 MB sorry was because i add this to my .htaccess
    php_value upload_max_filesize 50M
    Editting the PHP value does not always work. If uploads are being used in conjunction with a MySQL database, for example, you would have to also edit my.cnf.

Posting Permissions

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