Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    506
    Likes Received:
    4
    Trophy Points:
    168
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Shook

    Shook Registered

    Joined:
    Jan 31, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    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:
    151
    >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:
    868
    Likes Received:
    3
    Trophy Points:
    168
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice