Copilot
Your everyday AI companion
About 415 000 results
    Upvotes15Top Answeranswered Sep 16, 2008 at 23:02

    Security in what sense? Either way it really depends on what script is running and how well it is written. Too many scripts these days are half-assed and do not properly do input validation.

    I personally prefer FastCGI to mod_php since if a FastCGI process dies a new one will get spawned, whereas I have seen mod_php kill the entirety of Apache.

    As for security, with FastCGI you could technically run the php process under a different user from the default web servers user.

    On a seperate note, if you are using Apache's new worker threading support y...

    Content Under CC-BY-SA license
    Was this helpful?
  1. Question & Answer
  2. php - Is there a difference between apache module vs cgi …

  3. Apache Tutorial: Dynamic Content with CGI

  4. People also ask
    It is a simple way to put dynamic content on your web site, using whatever programming language you're most familiar with. This document will be an introduction to setting up CGI on your Apache web server, and getting started writing CGI programs.
    Both needs to be strong. Threat model is to prevent file access to unauthorized folks. Access must only be done via PHP scripts. From the PHP install.txt doc for PHP 5.2.6: Server modules provide significantly better performance and additional functionality compared to the CGI binary.
    For an introduction to using CGI scripts with Apache, see our tutorial on Dynamic Content With CGI. When using a multi-threaded MPM under unix, the module mod_cgid should be used in place of this module. At the user level, the two modules are essentially identical.
    CLI is for command line scripts, CGI is for web requests php-cli is meant for running PHP on the command line. php-cgi does additional things for you, such as HTTP headers and certain security modifications. Having said that, consider installing a FastCGI module and using PHP's FastCGI interface. This should run PHP noticably faster than php-cgi.
  5. Running PHP script through CGI with Apache... how?

  6. What is difference between PHP cli and PHP cgi? - Stack Overflow

  7. Which PHP mode? Apache vs CGI vs FastCGI - Layershift Blog

  8. mod_cgi - Apache HTTP Server Version 2.4

  9. Run PHP with CGI and Apache on Ubuntu 12.04 LTS (Precise …

  10. Run PHP Applications under CGI with Apache on Ubuntu 8.04 …

  11. PHP: Installed as CGI binary - Manual

  12. command line - How to configure Apache to run PHP as FastCGI