By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,364 Members | 1,536 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,364 IT Pros & Developers. It's quick & easy.

How to run php on CGI

P: n/a
Hi,

I need some information ?

How I can run my project (Php) on CGI.

Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi,

I need some information ?

How I can run my project (Php) on CGI.

Thanks.


Jul 17 '05 #2

P: n/a
Configure Apache to run with the CGI version instead of the SAPI version.

--
Tony Marston

http://www.tonymarston.net
"hakim" <s_**********@hotmail.com> wrote in message
news:mM*********************@news20.bellglobal.com ...
Hi,

I need some information ?

How I can run my project (Php) on CGI.

Thanks.

Jul 17 '05 #3

P: n/a
"Tony Marston" wrote:
Configure Apache to run with the CGI version instead of the SAPI
version.


Question (for curious minds): Why would you run it as CGI, what are
the advantages?

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-run-CGI-ftopict139094.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=467187
Jul 17 '05 #4

P: n/a
On 14 Aug 2004 14:08:44 -0400, steve <Us************@dbForumz.com> wrote:
"Tony Marston" wrote:
Configure Apache to run with the CGI version instead of the SAPI
version.


Question (for curious minds): Why would you run it as CGI, what are
the advantages?


Most of the advantages are double-edged sword type things:

Isolation from the webserver process (can't take down Apache if there's a
major bug). But this comes with overhead in creating and destroying processes.

You get more options as to the effective userid that the CGI script runs as,
though, since it's a separate process and could be setuid to another user - if
it's part of the Apache process, you can't do that.

Resources get released back again after it runs, so it's not holding onto
memory if the CGI script is only run sporadically. But if its run regularly,
it's got to aquire and release the resouces over and over.

There's things like FastCGI that work towards a midpoint between in-process
modules and per-request spawned CGI processes. This page has a brief discussion
of pros and cons:

http://www.fastcgi.com/devkit/doc/fa...er/fastcgi.htm

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #5

P: n/a
"Andy Hassall" wrote:
On 14 Aug 2004 14:08:44 -0400, steve
<Us************@dbForumz.com> wrote:
"Tony Marston" wrote:
Configure Apache to run with the CGI version instead of the SAPI version.

Question (for curious minds): Why would you run it as CGI, what

are
the advantages?


Most of the advantages are double-edged sword type things:

Isolation from the webserver process (canít take down Apache if
thereís a
major bug). But this comes with overhead in creating and destroying
processes.

You get more options as to the effective userid that the CGI

script runs as,
though, since itís a separate process and could be setuid to
another user - if
itís part of the Apache process, you canít do that.

Resources get released back again after it runs, so itís not
holding onto
memory if the CGI script is only run sporadically. But if its run
regularly,
itís got to aquire and release the resouces over and over.

Thereís things like FastCGI that work towards a midpoint
between in-process
modules and per-request spawned CGI processes. This page has a brief discussion
of pros and cons:

http://www.fastcgi.com/devkit/doc/fa...er/fastcgi.htm


Ok, got it. Thanks, Andy.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-run-CGI-ftopict139094.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=467220
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.