«

»

Aug 28 2012

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 :

etc/apache2/mods-available/fcgid.conf

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

16 comments

1 ping

Skip to comment form

  1. Levente

    This was a huge help! Thank you very much!

  2. chaly

    Thank you very much, problem solved 🙂

  3. Glenn Apolinario

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

    /etc/httpd/conf.d/fcgid.conf

  4. Tomek

    Thank you very much. It helps me a lot 🙂

  5. Alex

    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:

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

    /var/www/php-fcgi-script/ispconfig/*.php-pcgi-starter
    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

    1. Alex

      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

    2. Yarik

      thank you!

  6. byron

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

  7. Mark

    Thanks huge help.

  8. Simone Freelance

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

  9. Bogdan

    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/

  10. Thierry

    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.

  11. Thierry

    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 127.0.0.1:9016 -pass-header Authorization

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

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

  12. Jon

    Still a god send after all these years thanks so much

    Best Regards…

  13. Curtis Maurand

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

      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 3.0.5.4p8, i have PHP 5.5.9, XCache v3.1.0 and UpdraftPlus – Backup/Restore plugin (version 1.11.18is) is not working.

  1. Remove ISPConfig maximum upload size of 2M for Wordpress » EVILBOX

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

Leave a 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>

*