Missing shebang in php-fcgi starter scripts, leading to 500 errors (apache_fcgid server impl.)

  • Hello,
    I have posted.But why auto delete it?
    I upgrade to 1.3.13.But all php site will show Internal Server Error 500
    And site error log is


    Premature end of script headers: index.php



    So I downgrade to 1.3.11.But install 1.3.11 version it's will slow.


    Please check it and fix it.

  • Your post has been deleted because you don't respect our reporting rules: Reporting rules - Reminder


    So please, give us all needed information as stated in the link above, else, your thread will be deleted again.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello,
    1. Debian 7.11 x64
    2. 1.3.13
    3. Apache2 Fcgid
    3. Use Plugin is opendkim and phpswitcher(2.3.2)
    4. Error Message is Premature end of script headers


    I upgrade to 1.3.13 again.
    But it's still the same error message and 500 error page.
    Could need another information?

  • Bug confirmed. I'll provide you with a patch in few minutes.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Quick fix:


    Edit your /var/www/fcgi/<domain>/php-fcgi-starter scripts and at top, add the missing shebang:


    Shell-Script
    1. #!/bin/sh


    Once done, restart Apache2 and this should be ok.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • This is a bug in core. A new version will be released in few minutes.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • A fix has been added in our development branch. See https://github.com/i-MSCP/imsc…e1bc3a254600bbaebedab00cb
    This fix will be part of next version.


    Thank you for your report.
    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206