+ Reply to Thread
Results 1 to 19 of 19

Thread: Increase upload filesize

  1. #1
    bswinnerton's Avatar
    bswinnerton is offline New Bee
    Join Date
    May 2007
    Posts
    10
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Increase upload filesize

    Hi everyone, tried to ask this with the helpdesk but got no useful help. I am trying to change my upload_max_filesize in php. I was told to create a php.ini, but i have no idea where to put it. I see that on my php info that the master is stored in /usr/local/Zend/etc/php.ini but we obviously don't have access to that.

    So anyone? Where do i put this file? And also what should i put in it? Just upload_max_filesize = something more than 2M?

    Thanks guys.

  2. #2
    tiolalu Guest

    Default

    Text inside php.ini:
    [PHP]
    upload_max_filesize = 8M

    Save it and upload in the directory who need it, where is the script. Hope it's useful for you .

  3. #3
    bswinnerton's Avatar
    bswinnerton is offline New Bee
    Join Date
    May 2007
    Posts
    10
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    =) Why thank you.

  4. #4
    franz is offline New Bee
    Join Date
    Jul 2007
    Posts
    12
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Wink

    Hi hello

    which is the limit size please ?

    i want to install VBulletin board , i will can upload file of 32mb ?

    regards
    franz
    Reseller-A - start 10.07.2007 ;)
    Fan of Dreambox receiver satellite Linux with rj45 :p

  5. #5
    Matt R.'s Avatar
    Matt R. is offline WeeHBie
    Join Date
    Jul 2006
    Posts
    1,394
    WHB Points this Month
    0.00
    WHB Points
    60.00
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    32M is okay, just follow the instructions above.
    Matt Russell
    WebHostingBuzz CEO

    Follow me on Twitter: http://www.twitter.com/mattdrussell

  6. #6
    kiddc is offline New Bee
    Join Date
    Oct 2008
    Posts
    1
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    this is what i pasted in the php.ini....and i upped it to my folder the uploads go to and it did not work... i put the file in all folders then ..and still it wont work....please help....

    thanks

    [PHP]
    upload_max_filesize = 8M

  7. #7
    Tony's Avatar
    Tony is offline Bad Influence
    Join Date
    Apr 2007
    Location
    West Virginia Blue Ridge
    Posts
    604
    Servers
    SS3
    WHB Points this Month
    15.00
    WHB Points
    175.00
    Thanks
    2
    Thanked 8 Times in 8 Posts

    Default

    What won't work? We have no idea what you're trying to do.

    Franz - you don't need to change anything in php.ini to install vbulletin. Unless maybe you're trying to allow your members to upload 32mb files!

  8. #8
    ferrari_chris is offline New Bee
    Join Date
    Oct 2008
    Posts
    1
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've just increased my upload size to 5MB with the instructions mentioned above.

    Thanks guys.

  9. #9
    Krileon is offline New Bee
    Join Date
    Oct 2008
    Posts
    19
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    For the life of me I can't get my upload limit to change.

    I'm on the most expensive business package and they default me at 2MB upload. That's just absurd.

    I've tried putting php.ini in the directory of the script and now trying the root. It just won't do it.

    How am I supposed to upload SWF games to my arcade with a 2mb limit. My only other option is manually uploading through FTP then inserting it into the database from phpmyadmin. That whole process is too time consuming.

    Continues to completely ignore the fact that I've got my php.ini set to increase the limit.

  10. #10
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    Quote Originally Posted by Krileon View Post
    I'm on the most expensive business package and they default me at 2MB upload.
    Was it at 2MB before you added your own php.ini file? My server had at least an 8MB setting, so I would have expected yours to have similar.

    As soon as you add your own php.ini file, every value that you haven't specified will reset to a basic default rather than to the WHB values. When I tested it, I found that the WHB settings were much more generous than the basic defaults. If you want to preserve the WHB values while overriding just a few for your own account, you must start with a copy of WHB's php.ini file.

  11. #11
    Krileon is offline New Bee
    Join Date
    Oct 2008
    Posts
    19
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Alan B View Post
    Was it at 2MB before you added your own php.ini file? My server had at least an 8MB setting, so I would have expected yours to have similar.

    As soon as you add your own php.ini file, every value that you haven't specified will reset to a basic default rather than to the WHB values. When I tested it, I found that the WHB settings were much more generous than the basic defaults. If you want to preserve the WHB values while overriding just a few for your own account, you must start with a copy of WHB's php.ini file.
    Where do I get a copy of their PHP.ini

    Yes it's always been 2mb. That's the reason I began messing with the PHP.ini to begin with.

    Rather silly with such a high grade package they even default it so low. I need 20mb at most and 10mb at least.

  12. #12
    omniuni's Avatar
    omniuni is offline Jewbergeek!
    Join Date
    Jul 2007
    Posts
    181
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try an ini_set() in your script:
    http://us.php.net/ini_set
    [URL="http://d-site.net"]http://d-site.net/[/URL]

  13. #13
    Krileon is offline New Bee
    Join Date
    Oct 2008
    Posts
    19
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by omniuni View Post
    Try an ini_set() in your script:
    http://us.php.net/ini_set
    Thanks but:
    Many settings, although they do get set, have no influence in your script.... like upload_max_filesize will get set but uploaded files are already passed to your PHP script before the settings are changed.

    That's directly from the link you gave me. Does me no good. Tried it anyway. Doesn't work other then waste time editing all my scripts.

    This is just retarded. Why the heck is it default 2mb on a business server. What a joke. PHP.ini isn't making 1 bit of a difference either. I tried the scripts location. I tried my root folder. Neither works.

  14. #14
    Alan B's Avatar
    Alan B is offline Super Moderator
    Join Date
    Jul 2007
    Location
    Toronto, Canada
    Posts
    1,386
    WHB Points this Month
    0.00
    WHB Points
    290.00
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default

    Quote Originally Posted by Krileon View Post
    PHP.ini isn't making 1 bit of a difference either. I tried the scripts location. I tried my root folder. Neither works.
    For php.ini to work, you would have to place a copy of it in each directory of the scripts in question. Or at least each directory that might have files which are called upon script execution and file upload. php.ini is not like an .htaccess file that applies to all sub-directories: php.ini applies only to the directory it is in.

  15. #15
    Krileon is offline New Bee
    Join Date
    Oct 2008
    Posts
    19
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There's only 1 directory that the files are in. The upload is handled only by those scripts in said directory.

    The only calls it makes is to an archiver to unzip the uploads, but the whole upload process is handled by 2 scripts in 1 location. Where I have placed the PHP.ini and it doesn't work.

  16. #16
    omniuni's Avatar
    omniuni is offline Jewbergeek!
    Join Date
    Jul 2007
    Posts
    181
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Has anyone figured this out?
    [URL="http://d-site.net"]http://d-site.net/[/URL]

  17. #17
    omniuni's Avatar
    omniuni is offline Jewbergeek!
    Join Date
    Jul 2007
    Posts
    181
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Wow, I'm bumping this because I actually want to increase my upload size now.

    I tried the approach of a php.ini file...

    Here is my current php.ini:

    [PHP]
    upload_max_filesize = 12M
    This php.ini is in the same folder as the scripts that handle the uploads. I have used php.ini successfully before. This is not increasing my upload size. The uploads are to a file manager and is part of my CMS.
    [URL="http://d-site.net"]http://d-site.net/[/URL]

  18. #18
    squinky86 is offline Senior Member
    Join Date
    Jan 2008
    Posts
    100
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    add this to php.ini too:
    post_max_size = 12M

  19. #19
    omniuni's Avatar
    omniuni is offline Jewbergeek!
    Join Date
    Jul 2007
    Posts
    181
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Fantastic! That worked perfectly!
    [URL="http://d-site.net"]http://d-site.net/[/URL]

+ Reply to Thread

Posting Permissions

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