500 internal server error on Ubuntu box

Discussion in 'Installation/Configuration' started by tjhack, Sep 8, 2014.

  1. tjhack

    tjhack New Member

    Hi

    I have a ubuntu server which hosts several sites one of which is a site is not working.

    When accessing the url it gives an internal 500 error.

    I had a look at the log for this particular site and it shows the errors:

    104 Connection reset by peer: mod_fcgid error reading data from FASTCGI server
    Premature end of script headers: index.php

    Not sure where to even start with this as its only this site.

    Hope some can assist
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The error means that php process dies unexpectedly, this can be a php coding error. If the site is written in php, then you should checks its syntax, e.g. with:

    find /var/www/domain.tld/web -name "*.php" -exec php -l {} \; | grep -v 'No syntax e'
     
  3. tjhack

    tjhack New Member

    Deprecated php

    Hi

    Thanks for the response. When i ran the script it came up and fixed them errors. But not in my error log for the site i get the following:

    (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    Premature end of script headers: index.php

    Any ideas?
     
    Last edited: Sep 10, 2014

Share This Page