1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Unable to upload files ...

Discussion in 'Troubleshooting and Problems' started by Kainzo, Jun 30, 2013.

  1. Kainzo

    Kainzo Active Member

    We moved web hosts / new VPs
    When trying to upload any file size, this is the error message.
    The following error occurred
    slider.png - The uploaded file is too large for the server to process.

    That file is 33kb. PHP upload limit is set at 8M. MySQL is 64M for the max..

    We have moved from Apache2 to Nginx on the new VPS

    xenForo upload limit is still set at 5Mb (did a straight copy/paste from the previous VPS.

    Any thoughts?
  2. Tracy Perry

    Tracy Perry Well-Known Member

    Did you restart nginx and php5-fpm after making any upload size changes?
  3. Kainzo

    Kainzo Active Member

    I'm using php5-cgi ... but no everything had more than enough on the file sizes so there was no need to restart. the file is only 33kb I dont know how anything would be set smaller than that...
  4. Tracy Perry

    Tracy Perry Well-Known Member

    /data(and all subdirectories) and /internal_data(and all subdirectories) have the correct chmod setting?
    Also, if you are using nginx, I would STRONGLY recommend using php5-fpm as it is much nicer to play with.
    Also, did you check your nginx error log and php log?
  5. Kainzo

    Kainzo Active Member

    I ensured that the data/internall data was set to CHMOD 777 .. still giving this message..

    The uploaded file is too large for the server to process.


    Also - I am using CGI, not sure what will break if I yank it and add in Php5-fpm .. a little new to nginx.
  6. Tracy Perry

    Tracy Perry Well-Known Member

    I'm using php5-fpm with nginx on a debian 7.0 server. Only thing you have to double check is in /php5/fpm/pool.d/www.conf you change (or make sure it is correct) the listen directive to
    listen =

    and then in your nginx definition for the server running the forum have something similar to
        # use fastcgi for all php files
            location ~ \.php$ {
            # Zero-day exploit defense.
            # http://forum.nginx.org/read.php?2,88845,page=3
            try_files $uri /index.php =404;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            include fastcgi_params;
            fastcgi_intercept_errors on;
            fastcgi_ignore_client_abort off;
            fastcgi_connect_timeout 60;
            fastcgi_send_timeout 180;
            fastcgi_read_timeout 180;
            fastcgi_busy_buffers_size 256k;
            fastcgi_temp_file_write_size 256k;
  7. Kainzo

    Kainzo Active Member

    thanks for the replies, I'm still struggling with it... not 100% sure whats im doing wrong heh... when setting the temp/buffer size in the config it states;
    Restarting nginx:
    nginx: [emerg] "fastcgi_busy_buffers_size" must be less than the size of all "fastcgi_buffers" minus one buffer in /etc/nginx/nginx.conf:74
    nginx: configuration file /etc/nginx/nginx.conf test failed
  8. Tracy Perry

    Tracy Perry Well-Known Member

    You need to also modify your nginx.conf file

    Here is the one I have set in mine (and works with the example I gave earlier)
    Also, it's telling you specifically on line 74 of your nginx.conf that the setting is incorrect. You need to correct that size to correspond.

    client_max_body_size 75m;
    client_body_buffer_size 26K;
    client_header_buffer_size 1k;
    client_body_in_file_only clean;
    #client_max_body_size 2m;
    large_client_header_buffers 2 1k;
    ##Http Fast CGI modules
    fastcgi_buffer_size 16m;
    fastcgi_buffers 16 16m;
  9. Kainzo

    Kainzo Active Member

    ah... I see - I didnt think that any of these settings were even listed on my nginx.conf - I'll have to add it now
  10. Kainzo

    Kainzo Active Member

    the issue was actually with the quotos on virtualmin - just wanted to stop by and state that.

Share This Page