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.
I always recommend installing it as a module.
2. Better Security
3. Availability of all functions
1. More memory
2. Might be a little harder to install
1. Less Memory
2. Dont have to change you Apache installation
2. More security problems
3. Access to some features is limited
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.
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
September 14th, 2000, 03:31 AM
Can anyone point me to a step-by-step idiots guide for installing PHP as an Apache module on a Windows 2000 machine?
September 14th, 2000, 01:25 PM
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).]