Saturday, January 30, 2016

14.04 - Uploading large images are failing

When I try to upload an image file larger than ~100k through Wordpress and another upload script, I am getting a generic "http error".




I can upload smaller images without any problems.



I am using ISPConfig3 on Ubuntu 14.04.



I followed these steps and the changes were made without issue but that did not resolve my issue:




  1. Create a php file with and open it with your browser.

  2. Look for Loaded Configuration File (this shows the actual conf. file in use) and edit upload_max_filesize and set post_max_size to the same value (or make it 0 to disable limit) in that file in root mode.

  3. Execute: sudo service apache2 restart




I did not think it would solve it since the default was 2m and the file is much smaller than that.



I have also tried the following:



Same error with IE, FF, and Chrome



- added this to .htaccess file:



SecFilterEngine Off
SecFilterScanPOST Off





  • deactivating all plugins


  • changed themes and it was still an issue



  • another posted suggested this, but I do not have this file:
    Edit the following file:



    /etc/httpd/conf.d/fcgid.conf




Add this line (just below all of the other lines that start with ‘Fcgid’):



FcgidMaxRequestLen 1073741824




  • found a post suggesting this:
    You can also add this to your wp-config.php file: define('WP_MEMORY_LIMIT', '64MB');


  • uploads directory was 777 anyhow so no need to change to to 755 as suggested in other posts


  • added the following to my .htaccess file:



    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300

    php_value max_input_time 300




Are there any logs that will tell me why the uploads are failing or even better, does anyone know why it is failing?



ADDITIONAL INFO



I did find the /var/log/apache2/error.log and tested the upload again tailing the log file and nothing showed up in the log.

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...