php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9475 shebang appearing with suexec
Submitted: 2001-02-27 05:29 UTC Modified: 2001-03-02 05:03 UTC
From: cirdan at hem2 dot passagen dot se Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: RH 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cirdan at hem2 dot passagen dot se
New email:
PHP Version: OS:

 

 [2001-02-27 05:29 UTC] cirdan at hem2 dot passagen dot se
I have installed php-4.0.4pl1 and apache_1.3.14, but there
is a problem with suexec. I have a php script that looks
something like this:

#!/usr/local/bin/php
<?
  echo "hello\n";
?>

When I run it from a shell (./something.php) it just prints
the content-type header and "hello", but when it's started
by suexec it also outputs the "#!/usr/local/bin/php". I
have not been able to find any mention of this problem
anywhere, so I'm quite baffled. If this isn't a bug, I'd
appreciate some feedback on what I'm doing wrong. Thank you.

//C?rdan

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-02 05:03 UTC] cirdan at hem2 dot passagen dot se
Nevermind....

But I think --enable-discard-path should be mentioned all
over the place, or at least in the section on how to
set up php with suexec.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 17:01:29 2024 UTC