Results 1 to 5 of 5

Thread: PHP File Upload Size Problem

  1. #1
    CyberFerret is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    57

    Default PHP File Upload Size Problem

    Hi all,

    We have just moved Sugar back onto a rebuilt Cobalt RaQ box running RedHat, and everything works just sweet, until we tried to upgrade to the latest patch 4.0.1. Everytime I go to the upgrade screen, it says:


    Warning: Your PHP configuration must be changed to allow files of at least 6MB to be uploaded. Please modify the upload_max_filesize value in your php.ini located at: /etc/httpd/php.ini

    I have changed the PHP.INI file to upload_max_filesize=20M, and even 20000000 but to no avail, even though this setting is saved in the INI file. We have restarted httpd several times, and even rebooted the entire server a few times with no change.

    Is there something else obvious that I am missing here?

    Thanks,
    Devan

  2. #2
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: PHP File Upload Size Problem

    if you dump phpinfo(), is the file you editted the same one that php is using?

  3. #3
    nkendrick is offline Sugar Community Member
    Join Date
    Aug 2004
    Posts
    109

    Default Re: PHP File Upload Size Problem

    Have you checked out whether you have an /etc/php.ini - that might be the one to change.

  4. #4
    CyberFerret is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    57

    Default Re: PHP File Upload Size Problem

    Hi Guys,

    Thanks for the feedback - phpinfo() says that /etc/httpd/php.ini is indeed the file to use. I have changed this several times and rebooted the server, but phpinfo() still reports that upload_max_filesize is 2M, which is the default PHP setting. It seems to totally ignore whatever I put in the ini file!!!!!

    I have also checked httpd.conf for any restrictions (there are none), and also .htaccess in my Sugar CRM folder (it is zero length).

    This one has got me totally bamboozled. What on earth could be over riding or ignoring this setting?

    BTW - I checked, and yes, the upload_max_filesize directove does NOT have the comment ';' before it. I have even completely deleted the line and retyped it from scratch to see what will happen. I have tried values of 20000, 20M, 50M and 100M with no change.

    Thanks,
    Devan

  5. #5
    CyberFerret is offline Sugar Community Member
    Join Date
    Jan 2005
    Posts
    57

    Default Re: PHP File Upload Size Problem

    OK - we have resolved it. I got so frustrated that I put the upload_max_size directive as the very first line of my PHP.INI file and it took! Obviously, there is something else later on in the ini file which is causing PHP to ignore large chunks of it - I will work it out later...at least I can upload now !

    Thanks,
    Devan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •