Running PHP as CGI or module???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tiresome
Forum Newbie
Posts: 16
Joined: Sun Apr 18, 2004 9:45 am

Running PHP as CGI or module???

Post by tiresome »

What's this about CGI and module versions of PHP? What do I need to modify in order configure my PHP to run as a module instead of a CGI and what's the basic difference between the two?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Module (SAPI) is preferred as it's more robust, and
...provides significantly improved performance and some new functionality
If using CGI version, you should read this page: http://www.php.net/manual/en/security.index.php for more info (and difference).

I blatantly take it that you are using windows (correct me if wrong) so installing steps are best seen here: http://www.php.net/manual/en/install.windows.php

It's easier to show you the links to the manual itself explaining it, rather than trying to explain it here, as it's such a big area.

Good luck.
Post Reply