Adam wrote:
Php in CGI mode makes no sense. Php is beloved of his speed against
perl for example which is a powerful alternative.
We are not going to discuss this here at misc Perl vs PHP so leave
with it or change to perl. Php CGI is buggy slow and has many
problems to accomplish some tasks thats trivial otherwise.

This is of course complete nonsense.  PHP may be beloved by some
people, but it has nothing to do with speed.  Running PHP as a CGI is
simple and has no buggy problems or anything else.  Its just like
running perl as a CGI instead of using mod_perl, or python as a CGI
instead of mod_python.
I have tried it and php as module is sunificaly faster than as cgi.
And second is even faster if it compiled direct into apache and not as module. As for the buggy problems may be I wasnt clear.. Most using php they use scripts already writen and there is problems geting these scripts function as some paths and settings must be altered if you use php as CGI.



2) Why doesn't OBSD have a package for php that includes the CGI
version?
Not ported as others told u. I don't think there are many that they
go this way so probably is no need

Uh, its enabled if you installed it through ports/packages.  Just stick
#!/usr/local/bin/php up at the top of your script, and you have a PHP
cgi script just like you would with any other language.

There is no /usr/local/bin/php executable in default chrooted openbsd php install or I m blind? If you are speaking of moving this to /var/www /usr/local/bin/php that was the whole point security.

Anyway I use php many years in a production enviroment as apache module. Have tried the CGI thing my opinion is just that is a second option for apache and I see no reason to do it in openbsd.

Adam


Do not cc me I hate that.
-Chris

Reply via email to