Announcement

Collapse
No announcement yet.

CageFS and "Premature end of script headers: xyz.php" error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CageFS and "Premature end of script headers: xyz.php" error

    Hello,
    when the user is in cagefs, im getting this error in error_log - "Premature end of script headers: app.php"
    When i disable cagefs for that user, the script works fine. Its an Symfony app.
    I looked and the /home partition is not mounted with noexec, so that shouldnt be the problem.

    What should i do?

    Thanks,
    Leo.

  • #2
    Hello,

    Does this happens to all php files? Please try a simple phpinfo page.
    Also, how php is running on your server? suphp/fcgi/mod_lsapi ? Also, please try without .htaccess file or also without php.ini in users directory, if PHP is running as fcgi.

    Comment


    • #3
      It happens only on that file for now, since that is the "main" file.
      User doesnt have php.ini, im using MPM Prefork/Mod SuPHP.
      This is .htaccess - http://pastebin.com/1AM9BptY
      This is phpinfo - http://bit.ly/1zDV3kK

      Comment


      • #4
        Does it works without .htaccess ? Really need you to try this.

        And also, try running from console, login as user over ssh (or su -l user when root) and execute with php binary php /path/to/app.php , and try to execute same way but without any php.ini: php -n /path/to/app.php .

        Comment


        • #5
          Same error with or without .htaccess.
          It happenes on every account with the Symfony apps.

          Comment


          • #6
            Is this really suphp? or mod_lsapi ?
            As far as I remember there were some issues with symfony app with mod_lsapi and that looks to be it. If so please update it to latest 0.1-79 .

            Comment


            • #7
              I have the same setup on few servers that run symfony apps. It is really mod suphp, built with easyapache cpanel feature, version 0.7.2.
              i can upload the profile.yaml so you can check it out. Here you go - http://www.filedropper.com/profile_5

              Comment


              • #8
                Does php infor page you gave lead to domain with enabled cagefs?
                And please show me the output of:
                httpd -M | grep lsap

                Easyapache provide is not needed. Anyway, it will be better to create a ticket for us so we can login and check the issue on your server.

                Comment


                • #9
                  root@bucko-dev [/home/fiscallocastic/www]# httpd -M | grep lsap
                  Syntax OK

                  The phpinfo i provided was for user not in the cage. Check again, now it is in cage.

                  Comment


                  • #10
                    Hmm, ok looks like its really time to create a ticket with us.

                    Comment


                    • #11
                      I have created the ticket. Thanks for your help Bogdan.
                      Best regards.

                      Comment

                      Working...
                      X