Subject: Re: Apache, mysql and apache help - beginner
To: None <netbsd-help@netbsd.org>
From: poff <poff@sixbit.org>
List: netbsd-help
Date: 08/09/2003 08:27:53
Salut,

> > IS there a way to invoke /usr/pkg/bin/php without copying the php cgi to 
> > htdocs/cgi-bin?
> 
> What do you exactly mean with "php as a CGI" ?

Not run the DSO module.

> How to you want to invoke it (sample URL, please) ?

http://localhost/info.php
http://localhost/login.php?username=poff

> The 2 ways I see it it either to load php as a apache module (this is
> the way I do it), or to start all php scripts with
> #!/usr/pkg/bin/php
> make them executables and put them in /usr/pkg/libexec/cgi-bin.
> Then the php script are cgi executables as others.

Thanks, the cgi method works, but then I can only do:

http://localhost/cgi-bin/info.cgi

Unfortunatly I'm needing an extension which can't use the ap-php4 package, 
so I have to use it like this.

Is there any way to get it setup as above, namely, no cgi-bin, no .cgi 
extensions?

I tried:

AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php

Where the cgi-bin is aliased to libexec/cgi-bin

But I'm getting:

You don't have permission to access /cgi-bin/php/info.php on this server.

For http://localhost/info.php

Is there any way to get it setup so it works just like the apache module 
would work?

Thanks, appreciate the help!

P

-- 
poff@sixbit.org
SDF Public Access UNIX System - http://sdf.lonestar.org