httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Hahnefeld" <>
Subject Re: [users@httpd] .php files as CGI without shebang
Date Thu, 18 Mar 2004 18:12:36 GMT
> On Thu, 18 Mar 2004, Andreas Hahnefeld wrote:
> > I tried already the 'Action'-Directive but it didn't function as I
> > maybe it was my fault...
> Tell us what you tried and how it failed.  The Action directive should be
> the simplest way to do this.

I added a handler and defined 'Action' as described below:

   AddHandler php-cgi .php
   Action php-cgi /usr/bin/php

But I'm always receiving an error while opening an .php-file through web
for example i try then i receive the following

    File does not exist: /<path on webserver to

So I thought I missunderstood the meaning of this directive 'cause I don't
want to redirect the script...
I only want Apache to call /usr/bin/php to execute index.php...


ps: Apache isn't chrooted nor jailed...

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message