httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Hahnefeld" <ahahnef...@gmx.de>
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
wanted...
> > 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 http://testsite.net/index.php then i receive the following
error:

    File does not exist: /<path on webserver to
website>/usr/bin/php/index.php

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...

Andreas

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


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message