Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Page 1 of 2 12 LastLast
Results 1 to 15 of 16

This is a discussion on PHP Upload Limit in the Shared & Semi-Dedicated forum
Hi, Im moving a video site over to my SDX. This video site is for membership only, although a few short sample videos will be ...

  1. #1
    Loyal Client jcgorospe's Avatar
    Join Date
    Aug 2008
    Location
    El Salvador
    Posts
    29

    Talking PHP Upload Limit

    Hi,

    Im moving a video site over to my SDX.
    This video site is for membership only, although a few short sample videos will be available to anyone.
    I make these videos, and I will be the ONLY one uploading them to the server.
    Some (most) of these videos are over 100 megs. Some over 400 megs in wmv format. All under hmmm 600 most likely.

    BEFORE trying to bring the site to the SDX I read the FAQs and everything pointed that the limit could be changed.
    Knowing that I will be the only one uploading it shouldnt be a problem with the server... right?

    Anyway, I tried changing the php.ini and uploading it to the domain.com folder and it didnt work. Also tried to move upload it to the public_html folder and nothing.

    Would prefer to have it in the public_html/domain.com folder since there is also a small private family video site also in the server, and dont want anyone to abuse it.

    So after boring you with all this, my question is, how do I change the limit to say 1000 mb? Since uploading the php.ini doesnt seem to be working for me.

    Thanks,

    Juan Carlos

  2. #2
    CTO JPC-Masood's Avatar
    Join Date
    Aug 2002
    Location
    Jaguar Servers
    Posts
    2,070
    There are two limits related to upload in php: upload_max_filesize and post_max_size. If you increased both to 1000MB and it still did not work then you can open a support ticket from your client dashboard and ask support to increase both limits on the server-wide php.ini to 1000MB for video uploads.

    Masood N. | Chief Technical Officer
    JaguarPC.com


    Helpful Links
    Knowledge Base | Network Status

  3. #3
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    did you alter both
    post_max_size
    and
    upload_max_filesize
    flags to 1000M?
    Good luck

  4. #4
    Loyal Client jcgorospe's Avatar
    Join Date
    Aug 2008
    Location
    El Salvador
    Posts
    29
    Just opened a ticket. Thank you for your quick reply.

  5. #5
    Loyal Client jcgorospe's Avatar
    Join Date
    Aug 2008
    Location
    El Salvador
    Posts
    29
    yeah. uploaded the file php.ini, and modified the .htaccess as the cpanel says to do. first it didnt work, and then it just gave me 500 errors.

  6. #6
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    lol beaten to the punch...


    You can put a small php file, say "myserverinfo.php" in the directory in question. In it should be just:
    Code:
    <?  phpinfo(); ?>
    and point your browser at it.

    You can check the settings of those two flags, and check which php.ini file is being used.

    Be sure to remove that file after you're done.
    Good luck

  7. #7
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    You can't put it into .htaccess, it can only be in php.ini
    Good luck

  8. #8
    Loyal Client jcgorospe's Avatar
    Join Date
    Aug 2008
    Location
    El Salvador
    Posts
    29
    The .htaccess was modified following the instructions of the cpanel in the php settings icon.

    Okay, did the file thing and did reupload the php.ini. It does change to 1000 mb. But it doesnt let me upload still. Ideas?

  9. #9
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    Have you checked the error log in CPanel for any hints?
    Good luck

  10. #10
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    There's also a max execution time setting that might be in play for larger uploads. The default is 300 seconds.
    Good luck

  11. #11
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    There's also a memory_limit flag that might be in play. By default it's 64M
    Good luck

  12. #12
    Loyal Client jcgorospe's Avatar
    Join Date
    Aug 2008
    Location
    El Salvador
    Posts
    29
    Hi and thanks for all the help.

    Error log doesnt show anything.
    Im thinking its a script problem more than a server problem.
    Im showing 1000 from the server, and mixed 100 and 1000 from the script.
    Im gonna go bug them for a while.
    Its a Media Script by the way. Read they work well with JaguarPC and they also recommend you in their forum. (for the last year or so. Not so good from 2 years back).

    Thanks, Ill go bug them now.

    Juan Carlos

  13. #13
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,307
    you could try to make sure the php.ini file is in each directory from where they might be executing....?

    Good luck, hope you find the answer. When you do, please let us know!
    Good luck

  14. #14
    Loyal Client the_ancient's Avatar
    Join Date
    Feb 2004
    Posts
    3,386
    What Error are you getting, PHP has very descriptive errors it will tell you EXACTLY what setting is to blame.

    if your getting just a white page at the top of the script put in the following

    Code:
    error_reporting(E_ALL);
    and reply back with the errors

    If your getting a Browser Timeout, then apache not php is timing out, defualt for apache is 300 seconds
    -------------------------
    the_ancient
    MP Technology Group

  15. #15
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Quote Originally Posted by Ron View Post
    you could try to make sure the php.ini file is in each directory from where they might be executing....?

    Good luck, hope you find the answer. When you do, please let us know!
    The php.ini file only affects the scripts in the same directory, it doesn't cascade down into child directories, so as Ron suggests, the script you are trying to run may not be seeing your custome php.ini file.

    If you add the following to your .htaccess file, the settings in the php.ini you reference will cascde to all child directories, which may fix your problem. Note that with this method the php.ini can be anywhere on the server, it doesn't have to be in the public_html directory.
    Code:
    suPHP_ConfigPath /path/to/config/dir
    Note that the above path is to the directory containing the php.ini file, not ot the file itself. So if you put the file in your home directory the path would be /home/USERNAME, not /home/USERNAME/php.ini.

    Hope this helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •