PHP cgi/cgi-fcgi etc won't work with Typo and Drupal


On my old server I’m running Typo and Drupal, but I was unable to get
both of them to work at the same time; I’d recompile the php to have the
cgi-fcgi, it’d work for Typo, allow me to run Lighttpd, but then Drupal
wouldn’t work. I ended up falling back to webrick for Typo, and Apache
as I always had it for Drupal; typo does the modproxy/rewrite over to
localhost:3000 for webrick to handle Typo.

Now I’m building a new server, have cgi-fcgi installed and running so
Typo runs with Lighttpd, cool, but now when I try to install Drupal from
FreeBSD ports it explains why I had trouble getting the two to run:

[12:18:57] [root@chavez /usr/ports/www/drupal]# make install
This port requires the Apache Module or the CGI version of PHP, but you
already installed a PHP port without them.
*** Error code 1

Stop in /usr/ports/www/drupal.

[12:19:15] [root@chavez /usr/ports/www/drupal]# php -v
PHP 5.1.2 (cgi-fcgi) (built: May 1 2006 01:49:37)
Copyright © 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright © 1998-2006 Zend Technologies

So, what do I have to do to get both installed/working so that Typo can
use Lighttpd, and Apache can still use php to run Drupal? I already
have fcgi-2.4.0 installed, is there a way Apache can use this? If the
only solution is to use Apache for Typo and Drupal I’m ok with that too,
just don’t want to have to keep using webrick.


P - you don’t have to kick it