I got it working, but I pulled some info from a few other sites and mashed them up. Yep, not always a great idea, but it's something.
Here is what I have:
php-fcgid.conf
Code:
# Enable PHP in vhosts instead
#AddHandler fcgid-script .fcgi .php
AddHandler fcgid-script .fcgi
# Where to look for the php.ini file?
DefaultInitEnv PHPRC "/etc/php5/cgi"
# Maximum requests a process handles before it is terminated
MaxRequestsPerProcess 1000
# Maximum number of PHP processes
MaxProcessCount 10
# Number of seconds of idle time before a process is terminated
IPCCommTimeout 240
IdleTimeout 240
FCGIWrapper /usr/bin/php-cgi .php
My
vhost file:
Code:
<Directory /var/www/domain/www>
<FilesMatch "\.ph(p3?|tml|ps)$">
AddHandler fcgid-script .php
Options +ExecCGI
</FilesMatch>
</Directory>
The
FilesMatch part could be stripped out to leave:
Code:
<Directory /var/www/domain/www>
AddHandler fcgid-script .php
Options +ExecCGI
</Directory>
I removed .fcgi from the
AddHandler directive, as I don't plan on using files with that extension on this particular vhost, but added back you have:
Code:
<Directory /var/www/domain/www>
AddHandler fcgid-script .fcgi .php
Options +ExecCGI
</Directory>
References: