Remove ISPConfig maximum upload size of 2M for WordPress

If you are using WordPress on a ISPConfig3 hosting solution with PHP-FPM, you may be limited to 2MB upload size.

Error message :

Maximum upload file size: 2MB. After a file has been uploaded, you can add titles and descriptions.
filename.pdf exceeds the maximum upload size for this site.

Update : With ISPConfig 3.1 dev, on a system with CentOS 7.4 and apache + php-fpm 5.4 you have to edit /etc/php.ini and set post_max_size and upload_max_filesize to 32 MB.

Restart apache & php-fpm.

To solve this you need to edit the php.ini file located in /etc/php5/cgi/php.ini instead of the classic /etc/php5/apache2/php.ini.

Edit the lines below and change 2M to 50M:

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 50M
...
; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 50M

Restart Apache2, then relogin to WordPress.

Also see this post if you are running PHP-FPM which may also limit you.

6 comments

1 pings

Skip to comment form

  1. In my case I put this in Sites – my site name- Options – Apache Directives


    php_admin_value post_max_size 50M
    php_admin_value upload_max_filesize 50M

    it works for me in ISPconfig3

  2. Cool, worked for when the apache directive and php directive in ISPConfig wouldnt. Thanks

    • Replicator on July 30, 2014 at 11:57 pm
    • Reply

    It doesen´t work. I Changed both files and restartet Apache…. No Way…

  3. If you are using ISPConfig 3 and Owncloud with FastCGI PHP

    Apache Directives:

    FcgidMaxRequestLen

    Custom php.ini settings:

    max_execution_time = 6000
    upload_max_filesize = 125M
    post_max_size = 150M

      • Peter on March 26, 2015 at 5:52 am
      • Reply

      @Volker. Thanks. The apache directive made it!

    • Arthur on September 20, 2014 at 1:38 am
    • Reply

    It works for me thanks a lot !

Leave a Reply

Your email address will not be published.

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.