The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

File Upload Limit

Discussion in 'General Discussion' started by nootkan, Mar 22, 2009.

  1. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    I have a cms script called family connections installed on one of my domains with the ability to upload files like pdf, doc, txt, ppt, mpeg, mp3, avi, etc. I can upload pdf, txt, doc, ppt files but not mpeg, mp3, avi etc. I seem to be the only one having upload issues with this script, everyone else who has installed it can upload all files fine. The script file responsible for the uploads has been checked to make sure there are no errors by myself and the person who wrote it. I thought that maybe there was a limit to change or raise in my Whm. Under tweak settings I set the following PHP Max Upload Size for cPanel PHP to 1000 from 50 mb. It didn't help so I set upload_max_filesize in Php Config Editor from 2mb to 1000mb and that didn't help either. I tried leaving both set to 1000mb and that didn't do anything either. Any ideas?

    cPanel 11.24.4-R34599 - WHM 11.24.2 - X 3.9
    CENTOS 5.2 i686 on standard
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not sure I'd be bumping things that high, but that's just me...

    You might try uploading a file then checking your error logs for clues.
     
  3. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    Info pro, thanks for your quick reply. I am fairly new to the dedicated server and cannot figure out the command to check my error logs and the one in cpanel doesn't seem to give me what I'm looking for.
    Tried this but didn't seem to work: tail -n 1000 /home/log/apache/error
    As for my high settings, some of the video uploads were 700 mb.
     
    #3 nootkan, Mar 23, 2009
    Last edited: Mar 23, 2009
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You must understand/read up on, the ramifications of uploading that size of a file thru a php script. This is "not" the same as uploading via FTP.

    Apache error log for your server is located here:

    /usr/local/apache/logs/error_log
     
  5. yapluka

    yapluka Well-Known Member

    Joined:
    Dec 24, 2003
    Messages:
    301
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    France
    cPanel Access Level:
    Root Administrator
    This is quite big of a file to be uploaded through http. FTP or SFTP would be much better for such large files.
    If you really need to upload very big files through http, you also need to change the post_max_size, max_execution_time and max_input_time.
     
  6. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    Thanks for your input. This is a family website that requires a username/password to get into. My family has requested the ability to upload videos and music files to exchange amongst themselves. Not being too experienced in this field I am trying to figure out how to do it. Others who have been using this cms software have been doing so without problems (or so they say). I will try and understand/read up on, the ramifications of uploading that size of a file thru a php script like you suggest Infopro. Any links on where to start? I will also try google.

    Yapluka, thanks for your input also. I will look into those changes also. Are they in my WHM?
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  8. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    I tried typing the command
    Code:
    /usr/local/apache/logs/error_log
    into putty after logging in and received the "Permission Denied" error message. Am I missing something? Thanks for the links, I've searched google and tried all the suggestions but still cannot get the files to upload.
     
  9. vall

    vall Member

    Joined:
    Mar 24, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    you need to read the file you cant execute it, type "more /usr/local/apache/logs/error_log" and you can see the logs.
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  11. nootkan

    nootkan Well-Known Member

    Joined:
    Oct 25, 2006
    Messages:
    129
    Likes Received:
    2
    Trophy Points:
    18
    Thanks guys for all your help. I've got it working now and I already had the config explorer installed when I had mysecurity package installed by config server. I'll install the other one shortly. I had one folder permission set wrong and some php code turned out to be the wrong code for the wmv and wma files. ;)

    Just installed viewlogs. Awesome...thanks for this Infopro.
     
    #11 nootkan, Mar 27, 2009
    Last edited: Mar 27, 2009
Loading...

Share This Page