Its a very important to know the differences between PHP as an Apache Module and PHP as a CGI Binary.
PHP installed as Apache Module
- Inherits Apache’s Permissions
- Considered feature rich
- Plethora of options
- Most servers support php as server module
- Security issues might need some handling ( i am ok with it )
PHP as CGI Binary
- Considered the worst possible way to deploy PHP
- Slower compilation times as compared to Module
- All php requests pass through the CGI (considered secure but dunno why ?)
Links