ISPConfig – Error 500 Internal Server Error

If you install ISPConfig 3 on a Ubuntu Server using Falko Timme tutorial from here and you use PHP-FPM with Apache you may get a “ERROR 500 – Internal Server Error!” message.

Error message :

ERROR 500 - Internal Server Error!
The following error occurred:
The requested URL caused an internal server error.

If you get this message repeatedly please contact the webmaster.

To resolve this edit :


and add or edit the line “MaxRequestLen 15728640″ to set the Request Limit to 15MB. The resulting file should contain these settings:

AddHandler fcgid-script .fcgi
FcgidConnectTimeout 20
MaxRequestLen 15728640

Warning : this will limit your upload file size to 15M.

Save the changes and restart apache:

/etc/init.d/apache2 restart


1 ping

Skip to comment form

    • Levente on November 17, 2012 at 3:37 pm
    • Reply

    This was a huge help! Thank you very much!

    • chaly on May 16, 2013 at 12:02 pm
    • Reply

    Thank you very much, problem solved 🙂

  1. In CesOS, i guess will also apply with Redhat/ RPM based systems


    • Tomek on July 25, 2013 at 12:22 pm
    • Reply

    Thank you very much. It helps me a lot 🙂

    • Alex on September 2, 2013 at 12:24 pm
    • Reply

    In modern ISPconfig installations this value of MaxRequestLen is already set.

    I got this error when I globally changed GID for all my site content including ISPcongig. (It was the simplest way to provide access for a group of developers.) ISPconfig stopped working with “500 Internal server error”.

    At installation, ISPconfig forms the following structure in the www root:

    The directory apps/ and the file *.php-fcgi-starter should have UID:GID = ispapps:ispapps

    The directory ispconfig/ and the file *.php-fcgi-starter should have UID:GID = ispconfig:ispconfig

    When I restored proper GIDs, ISPconfig resumed working.

    The error was logged in /var/log/apache2/suexec.log

      • Alex on September 2, 2013 at 12:43 pm
      • Reply

      Additionally, rwxrwxr-x flags are not permitted: flags for this directories and files should be rwxr-xr-x, i.e., no group and other write flags are permitted

      • Yarik on June 27, 2014 at 2:22 pm
      • Reply

      thank you!

    • byron on March 6, 2014 at 6:55 pm
    • Reply

    I just want to say a huge thanx
    also for httpd use this path
    vi /etc/httpd/conf.d/fcgid.conf

  2. Thanks huge help.

  3. Thank you very much! I’m understanding how to fix the little errors I’m having in the new VPS, thanks again!

    • Bogdan on October 4, 2014 at 6:15 pm
    • Reply

    Sorry but it wasn’t a fix for me. In addition I gFastCGI: failed to connect to server “/var/www/clients
    FastCGI: incomplete headers (0 bytes) received from server “/var/www/clients/

    • Thierry on December 16, 2014 at 1:56 pm
    • Reply

    Sorry, this wasn’t a fix for me neither.
    I’ m still looking for the reason of that 500 error.
    Any other tip or a link toward complete setup checklist would be appreciated.
    Thank you.

    • Thierry on December 18, 2014 at 9:14 pm
    • Reply

    Found another solution (based on almost the same Falko install tutorial), and same config except Ubuntu Version: 14.04 “Trusty Tahr” LTS.

    When I set a site with PHP-FPM in IspConfig, it writes following lines in its sites-enabled vhost :
    Alias /php5-fcgi ALIAS_PATH&NAME
    FastCgiExternalServer ALIAS_PATH&NAME -idle-timeout 300 -host -pass-header Authorization

    I had to change -host to -socket /var/run/php5-fpm.sock and it works. tested for several sites.

    Just don’t know where IspConfig takes the wrong information.

    • Jon on April 8, 2015 at 4:31 pm
    • Reply

    Still a god send after all these years thanks so much

    Best Regards…

  4. I also had the problem with Joomla on a ISPConfig machine. I ended up having to remove the php5-xcache module. I tried the above mentioned fix and while I left it in there, that didn’t fix the problem. Just thought you should know.

    1. My IPSConfig installation was without XCache. To disable XCache you don’t have to uninstall it, just edit /etc/php5/mods-available/xcache.ini and set xcache.size = 0.
      For the installation below, /etc/php5/fpm/conf.d/20-xcache.ini is a symlink to /etc/php5/mods-available/xcache.ini.
      On another ISPConfig, i have PHP 5.5.9, XCache v3.1.0 and UpdraftPlus – Backup/Restore plugin (version 1.11.18is) is not working.

  1. […] see this post if you are running PHP-FPM which may also limit […]

Leave a Reply

Your email address will not be published.


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