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
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
Cool, worked for when the apache directive and php directive in ISPConfig wouldnt. Thanks
It doesen´t work. I Changed both files and restartet Apache…. No Way…
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
@Volker. Thanks. The apache directive made it!
It works for me thanks a lot !
[…] The site that helped me: http://www.evilbox.ro/linux/remove-ispconfig-maximum-upload-size-of-2m-for-wordpress/ […]