#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    5
    Rep Power
    0
    Hi all,

    I must install PHP I my new cobalt server running Apache as web server, and I wonder if it is better to install PHP as apache module or CGI.

    What advantages or disadvantages have both options..?

    Thanks in advance.

    Toni
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 1999
    Location
    New York City
    Posts
    69
    Rep Power
    16
    I always recommend installing it as a module.
    Module Advantages:
    1. Speed
    2. Better Security
    3. Availability of all functions

    Module Disadvantages
    1. More memory
    2. Might be a little harder to install

    CGI Advantages
    1. Less Memory
    2. Dont have to change you Apache installation

    CGI Disadvantages
    1. Slower
    2. More security problems
    3. Access to some features is limited




    ------------------
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    50
    Rep Power
    15
    i would further like to comment:
    Is it possible to first complie PHP as a Apache module and then add CGI capabilities to it if required or vice-versa.

    duke.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    43
    Rep Power
    15
    I would say no, you cant add "CGI" capabilities to PHP as it resides in the Apache server.

    But yes, your server can run CGI scripts (Perl, PHP CGI, and others) at the same time that you have the PHP server module installed.

    ------------------
    PHP, Perl, SQL Programming at http://www.mentalobjects.com
  8. #5
  9. No Profile Picture
    perspiration
    Guest
    Devshed Newbie (0 - 499 posts)
    Can anyone point me to a step-by-step idiots guide for installing PHP as an Apache module on a Windows 2000 machine?

    Thanks.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    60
    Rep Power
    15
    Perspiration,
    Can't be done. PHP on Win 95/98/NT/2k must run as CGI.

    And econsult, maybe I didn't understand your point, but you can run PHP as CGI, and the Apache Module on the same machine under *nix. CGI lives (for me) at /usr/bin/php and is completely independent of Apache, and my Apache server uses the module.



    [This message has been edited by aarongb (edited September 14, 2000).]

Similar Threads

  1. Doing File uploads using a PHP as CGI
    By phoebebright in forum PHP Development
    Replies: 4
    Last Post: February 16th, 2004, 04:49 AM
  2. Replies: 0
    Last Post: February 12th, 2004, 11:56 AM
  3. Executing PHP script using crontab with PHP module
    By crazyIvan in forum PHP Development
    Replies: 0
    Last Post: January 23rd, 2004, 08:27 AM
  4. Free Hosting 100 MB, PHP, CGI, SSI, File Manager
    By idleserv in forum Free Web Hosting
    Replies: 1
    Last Post: January 18th, 2004, 08:12 PM
  5. run php as a cgi or as a server module?
    By wizbang in forum PHP Development
    Replies: 0
    Last Post: January 11th, 2004, 05:50 PM

IMN logo majestic logo threadwatch logo seochat tools logo