You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Phil <fo...@yahoo.com> on 2000/03/13 02:10:00 UTC

Re: general/5808

The following reply was made to PR general/5808; it has been noted by GNATS.

From: Phil <fo...@yahoo.com>
To: apbugs@apache.org
Cc:  
Subject: Re: general/5808
Date: Sun, 12 Mar 2000 17:00:42 -0800 (PST)

 --0-468703135-952909242=:20692
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 
 
 Note: forwarded message attached.
 
 __________________________________________________
 Do You Yahoo!?
 Talk to your friends online with Yahoo! Messenger.
 http://im.yahoo.com
 --0-468703135-952909242=:20692
 Content-Type: message/rfc822
 
 Received: from [209.206.88.234] by web3501.mail.yahoo.com; Thu, 24 Feb 2000 21:13:49 PST
 Date: Thu, 24 Feb 2000 21:13:49 -0800 (PST)
 From: Phil <fo...@yahoo.com>
 Subject: Hey man... (5808)
 To: Marc Slemko <ma...@znep.com>
 MIME-Version: 1.0
 Content-Type: text/plain; charset=us-ascii
 Content-Length: 5092
 
 That was a typo in the report only (it's correct on
 the script), it was supposed to be
 #!/usr/local/bin/php if the path to php was wrong, do
 you think it would have executed from command line??
 
 As for 'beginner unix tutorials' I've been writing
 scripts and using unix for a few years now... which is
 enough to know what I'm doing with regard to writing a
 TEST script... I'm NO expert, but I can write scripts,
 and run a fully backended website along with being a
 freelance webbuilder...
 
 Ya know, I provided you with everything a first,
 second, and now third time... I don't know why you
 need to pick on a stupid typo just because for
 whatever reason you have a problem with something I
 did or said. I have a legitimate bug report with a
 FULL details... I'm asking you nicely, again, please
 just look over the bug report... you'll see it's a
 real problem with in-depth details.
 
 Phil
 --- Marc Slemko <ma...@znep.com> wrote:
 > Please stop repeatedly submitting such things.
 > 
 > The first time you refused to provide full
 > information, so your report was
 > closed.
 > 
 > Now you decide to give me what I asked for before,
 > and it is clear that
 > you don't really understand how CGIs work.  You
 > can't put 
 > "#!/usr/local/bin/apache" as a line on a script! 
 > I'm afraid we cannot
 > help you with such issues, this is for bug reports
 > about Apache not basic
 > Unix tutorials.
 > 
 > I suggest you also try reading the PHP docs.
 > 
 > On 25 Feb 2000, Phil Dibowitz wrote:
 > 
 > > 
 > > >Number:         5808
 > > >Category:       general
 > > >Synopsis:       (8)Exec format error upon
 > exection of a script through apache (runs fine on
 > command line)
 > > >Confidential:   no
 > > >Severity:       non-critical
 > > >Priority:       medium
 > > >Responsible:    apache
 > > >State:          open
 > > >Class:          sw-bug
 > > >Submitter-Id:   apache
 > > >Arrival-Date:   Thu Feb 24 20:40:00 PST 2000
 > > >Closed-Date:
 > > >Last-Modified:
 > > >Originator:     foo_bar_00@yahoo.com
 > > >Release:        1.3.9
 > > >Organization:
 > > apache
 > > >Environment:
 > > Redhat Linux 6.0 (all the errata and security
 > updates, but original kernel: 2.2.5-15)
 > > Intel i386 version (running on a Pentium)
 > > gcc ver. 2.91.66
 > > >Description:
 > > I have a test PHP script that I'm trying to run as
 > a cgi script (i.e., no php_mod... I have the
 > appropriate AddType defined in srm.conf)... here's
 > the bug...
 > > 
 > > If I run it from the command line (./test.php3) it
 > executes just fine, but if I hit it with my browser
 > Apache sends a page that says "no input selected."
 > The log file then reports "(8)Exec format error"
 > > 
 > > The script is as the path to php, opening html
 > headers and then the line:
 > > <?php echo "test"; ?>
 > > 
 > > Executing on the command line results with
 > "test"... but through Apache results in the error
 > above.
 > > 
 > > I ran a backtrace on it and got:
 > > Program received signal SIGINT, Interrupt
 > >  0x4010fcf2 in __libc_accept ()
 > >  #0 0x4010fcf2 in __libc_accpet ()
 > >  #1 0x80701ae in strcpy ()
 > >  #2 0x80705cc in strcpy ()
 > >  #3 0x8070729 in strcpy ()
 > >  #4 0x8070d56 in strcpy ()
 > >  #5 0x80714d3 in strcpy ()
 > >  #6 0x40079cb3 in __libc_start_main
 > (main=0x807119c <strcpy+159240>,
 > >  argc=4, argv=0xbffffd44, init=0x8049ab4,
 > fini=0x80a511c <__udivdi3+460>,
 > >  rtld_fini=0x4000a350<_dl_fini,
 > stack_end=0xbffffd3c)
 > >  at ../sysdeps/generic/libc-start.c:78
 > > 
 > > NOTE: My web hosting company uses php as a cgi
 > script with no mod_php, and I'm trying to mirror
 > that at home. That's how I know it's possible.
 > > >How-To-Repeat:
 > > 1. Here's my test script test.php3 (only I have
 > opening and closing HTML and BODY tags)...
 > > 
 > > #!/usr/local/bin/apache
 > > <php? 
 > > echo "test"; 
 > > ?>
 > > 
 > > 2. In srm.conf set:
 > > AddType cgi-script .php3
 > > 
 > > 3. Put the above script in your cgi-bin directory
 > five it execute permissions and hit it with your
 > browser.
 > > >Fix:
 > > I know it's possible to use this type of setup,
 > but I have no idea why I'm getting a SEGINT, so not
 > sure how to fix it...
 > > >Release-Note:
 > > >Audit-Trail:
 > > >Unformatted:
 > >  [In order for any reply to be added to the PR
 > database, you need]
 > >  [to include <ap...@Apache.Org> in the Cc line
 > and make sure the]
 > >  [subject line starts with the report component
 > and number, with ]
 > >  [or without any 'Re:' prefixes (such as
 > "general/1098:" or      ]
 > >  ["Re: general/1098:").  If the subject doesn't
 > match this       ]
 > >  [pattern, your message will be misfiled and
 > ignored.  The       ]
 > >  ["apbugs" address is not added to the Cc line of
 > messages from  ]
 > >  [the database automatically because of the
 > potential for mail   ]
 > >  [loops.  If you do not include this Cc, your
 > reply may be ig-   ]
 > >  [nored unless you are responding to an explicit
 > request from a  ]
 > >  [developer.  Reply only with text; DO NOT SEND
 > ATTACHMENTS!     ]
 > >  
 > >  
 > > 
 > 
 > 
 __________________________________________________
 Do You Yahoo!?
 Talk to your friends online with Yahoo! Messenger.
 http://im.yahoo.com
 
 --0-468703135-952909242=:20692--