On Sun, Sep 20, 2009 at 12:30 PM, Marcus Merz <[email protected]> wrote:

> Hi Jeff,
>
> "Jeff Trawick" <[email protected]> schrieb im Newsbeitrag
> news:<[email protected]>...
> > On Sat, Sep 19, 2009 at 3:48 AM, Marcus Merz <[email protected]> wrote:
> >
> > Recap: Try cgi.fix_pathinfo=0; maybe somebody else will chime in on the
> > PHP_Fix_Pathinfo_Enable processing.
> >
>
> Thanks for your comments. Surprisingly setting cgi.fix_pathinfo=0 in
> php.ini
> does not change the behaviour calling http://www.domain.tld/image.jpg .


What is your configuration to run modify.php as a CGI?  Do you add a shebang
line, or use something else?

Here's my configuration:

LoadModule fcgid_module modules/mod_fcgid.so

<Directory /home/trawick/inst/22/htdocs/wtmrk/>
  Allow from all
  AddHandler wtmrk jpg
  Action     wtmrk /modify.php
</Directory>

<Files ~ (\.php)>

  <IfModule mod_fcgid.c>
    SetHandler fcgid-script
    FCGIWrapper /usr/bin/php5-cgi .php
  </IfModule>

  <IfModule !mod_fcgid.c>
    SetHandler cgi-script
  </IfModule>

  Options +ExecCGI
  Allow from all
</Files>

I comment out the LoadModule directive to switch to CGI.  I had to add a
shebang line to the top of modify.php.

Reply via email to