Forum Moderators: phranque
Thank you in advance for any help.
Jim
A lot of hosts have all kinds of security features enabled when you use the mod_php and the cgi'd version is much faster in some cases.
Take a look at these examples from the askapache site.
### RUN PHP AS APACHE MODULE ###
#AddHandler application/x-httpd-php .php .htm
### RUN PHP AS CGI ###
#AddHandler php-cgi .php .htm
### CGI PHP WRAPPER FOR CUSTOM PHP.INI ###
#AddHandler phpini-cgi .php .htm
#Action phpini-cgi /cgi-bin/php5-custom-ini.cgi
### FAST-CGI SETUP WITH PHP-CGI WRAPPER FOR CUSTOM PHP.INI ###
#AddHandler fastcgi-script .fcgi
#AddHandler php-cgi .php .htm
#Action php-cgi /cgi-bin/php5-wrapper.fcgi
### CUSTOM PHP CGI BINARY SETUP ###
#AddHandler php-cgi .php .htm
#Action php-cgi /cgi-bin/php.cgi