Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on changing Upload size? in the Shared & Semi-Dedicated forum
Hi guys and gals Firstly let me say I'm very impressed with the service I have recieved from JaguarPC and will not have any problems ...

  1. #1
    JPC Member
    Join Date
    Feb 2006
    Posts
    9

    changing Upload size?

    Hi guys and gals

    Firstly let me say I'm very impressed with the service I have recieved from JaguarPC and will not have any problems recommending them to friends.

    Right down to business, Could someone advise me on how I could change the file size that is allowed to be upload through php/html from the standard 2meg (i think) to a max of 5 meg.

    I set the file size allowed to uploaded to 5 meg on my site core settings, but im still only allowed 2 meg.

    Thanks in advance for any help

    Regards
    Peter

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    Add these lines to your .htaccess file
    php_value post_max_size 6M
    php_value upload_max_filesize 5M

  3. #3
    JPC Member
    Join Date
    Feb 2006
    Posts
    9
    Thank you very much Ron

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    My pleasure.

  5. #5
    JPC Member
    Join Date
    Nov 2005
    Posts
    13
    Quote Originally Posted by Ron
    Add these lines to your .htaccess file
    Ok, now how do we do this on one of your servers running php as cgi? I know it needs to go in a php.ini, but the syntax has to be different. Also, I'm actually unsure where I need to place php.ini files on a phpbb site.

  6. #6
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    I haven't done it, but I think you just drop the "php_value" part.

    Again, I haven't done this, but from the description, you'll need to get a copy of the master php.ini file and add those lines to it, and put it into the directories where you have php code. In a standard php install that would be at least /phpBB/ ; I don't know if you'll need to add it to the includes directory and/or the admin directory, etc., etc.

    Since you're trying to allow large uploads, I'd guess you've installed an attachemnt mod of some sort. The php.ini file will probably have to go in the directory where the code is that contains the attachment mod. Again, that's probably your root directory.

    You get to be the one who tells us where it needs to go!
    Let us know!

    (I'm just another customer,,, it's not one of "my" servers )

Bookmarks

Posting Permissions

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