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.

PHP upload limited to < than php.ini

Discussion in 'General Discussion' started by asmithjr, Dec 9, 2004.

  1. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    475
    Likes Received:
    1
    Trophy Points:
    18
    I changed the php.ini to allow for a larger file to be uploaded using the upload_max_filesize

    When I check the phpinfo it shows the correct upload size yet when I try to upload a file size larger than 50MB it bombs.

    IE:
    upload_max_filesize = 100MB;

    When I try to upload a file larger than 50 MB it gives me file cannot be found error and it does not upload.

    to make sure I did a search for php.ini and changed the setting upload_max_filesize in every config then restarted httpd

    What else?
     
  2. Shook

    Shook Registered

    Joined:
    Jan 31, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    do a search for the other php.ini

    HTML:
    php -i|grep php.ini
    and make limit increase
     
    #2 Shook, Feb 9, 2005
    Last edited: Feb 9, 2005
  3. redima

    redima Registered
    PartnerNOC

    Joined:
    Jun 22, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    >php -i |grep php.ini

    gives me:

    >Configuration File (php.ini) Path => /usr/local/lib

    I tried to edit it with nano editor (the file si empty) but I can't save it:

    >Could not open file for writing: No such file or directory

    Also there is a php.ini file in /usr/lib/, I can't write on it as well. :confused:
     
  4. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I think you may also need to look at max execution limit (size and/or time) AFAIK... php scripts are not the best solution for uploads of that size. You might also try looking at cgi based ftp scripts.
     
Loading...

Share This Page