How-to fix WordPress running at ISPConfig 3 giving Error 500 – Internal Server Error

Ok so I ran into this problem – I have WordPress installed at Ubuntu machine running ISPConfig 3 and as I tried to upload images it just gave plenty of errors and in the end:

ERROR 500 - Internal Server Error!

I think it is somehow related to my upload_max_filesize variable set in /etc/php5/apache2/php.ini

Anyway here is how to fix it:

 nano /etc/apache2/mods-available/fcgid.conf

and add there (below FcgidConnectTimeout):

MaxRequestLen 15728640

So now there it set request limit to 15 MB

Btw. the fcgid.conf file should after this modification look like this:

<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
MaxRequestLen 15728640

I hope it helped 😉