«

»

Nov 27 2012

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

Skip to comment form

  1. pawel

    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. Martyn

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

  3. Replicator

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

  4. Volker

    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

    1. Peter

      @Volker. Thanks. The apache directive made it!

  5. Arthur

    It works for me thanks a lot !

Leave a Reply to Volker Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*