End of script output before headers: index.php

Discussion in 'Installation/Configuration' started by haxus, Oct 5, 2020.

  1. haxus

    haxus New Member

    Hello Community,

    - OS: Centos 8.2.2004 (Core)
    - ISPconfig version: 3.2b3

    I am trying to get ispconfig to run, using the following Howto:

    All went fine up to the point where I want want to access the ipconfig via Webinterface. Then I reseive the message withn the browser:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
    More information about this error may be available in the server error log.
    The logs (/var/log/httpd/error_log) are not telling much either:
    [Sun Oct 04 16:41:30.908046 2020] [fcgid:warn] [pid 189160:tid 139795556697856] (104)Connection reset by peer: [client] mod_fcgid: error reading data from FastCGI server
    [Sun Oct 04 16:41:30.908074 2020] [core:error] [pid 189160:tid 139795556697856] [client] End of script output before headers: index.php
    Other logs (/var/log/ispconfig/*) are empty

    running the following command hangs forever, giving no output at all:
     wget -q -O htf-common-issues.php "http://gitplace.net/pixcept/ispconfig-tools/raw/stable/htf-common-issues.php" && php -q htf-common-issues.php
    Anything I missed with the fcgi configuration?
    How can I get more log output, debugging deeper?
    Is this propertly a known problem which we can fix easyly?

    Thanks for your support!
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Are you sure the installation went without errors and all parts of the guide were followed?
    If the reporting command hangs forever, it makes me thing the ISPConfig installation is very broken. Maybe try installing again, and very carefully and pay attention to errors during install.
  3. haxus

    haxus New Member

    Thanks for your support!
    Well I did not follow the installation path completly rather then taking this as a refference for a multi server setup. I also have SElinux enabled, however I have no denys in /var/audit/audit.log anymore as I setup and implemented relevant polices.

    I did a reinstallation as you suggested, however I am standing again at the same point.
    I also found the reason, why the script "htf-common-issues.php" has an wrong spelled var (bug) within, named: ".$rhatrel != $redhatrel", after a correction the testscript works fine, however no errors.

    Meanwhile I found another thing hinting to the problem behind within /var/log/secure

    Oct  5 09:30:07 web-w-0 suexec[234146]: uid: (1002/ispconfig) gid: (1003/ispconfig) cmd: .php-fcgi-starter
    Oct  5 09:30:07 web-w-0 suexec[234146]: (13)Permission denied: exec failed (.php-fcgi-starter)
    /etc/php-fpm.d/w w w .conf
    listen.owner = apache
    listen.group = apache
    listen.mode = 0660
    after that change I of cause restarted services:
    systemctl restart httpd.service php-fpm.service
    the file in question looks like this:
    -rwxr-xr-x. 1 ispconfig ispconfig 288 Oct  4 15:52 /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter
    Could anybody please lead me inito a better debugging please ?
    Last edited: Oct 5, 2020

Share This Page