PHP as CGI / as Apache Module
I have been reading around on PHP installations and wanted to get a bit of a consensus on how PHP is normally installed.It would seem, if its installed as CGI, then is must be given executable permissions, and you have to add a tag similar to:
#!/usr/bin/php4
at the top of each script.
So my guess is, PHP is usually installed as an apache module as apposed to CGI? Or is there a work around for this that I have not come across yet?
So, in my eyes, the only reason to install PHP as CGI, is if you want to execute PHP for other purposes then hosting them for web access?
I apologize if this seems like such a noob question, but I just want to make sure I am understanding what I am reading and I am on the right path.
Thanks,
T7702