List Info

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




PHP cgi/cgi-fcgi etc won't work with Typo and Drupal
user name
2006-05-22 21:00:55

On Mon, 22 May 2006 12:41:19 -0700, Ben Calvert <benflyingwalrus.net> wrote:
> 
> Phil - I'm not entirely sure if you're asking
> 
>     1. how to run lighttpd and apache simultaneously
> or 2. how to run rails/typo and drupal simultaneously

Ben

I currently have:
currently I have have
webrick/Typo (on :3000) with Apache (on :80) doing the
mod_proxy, mod_rewrite shuffle with all PHP apps working on
Apache 

I want to get:
lighttpd/Typo (on :3000) with Apache (on :80) doing the
mod_proxy, mod_rewrite shuffle *and* still having PHP apps
work on Apache (Drupal is just an example of one, I also
rely on Roundcube webmail, which is PHP, and Gallery), which
they currently do not.  If I just recompile PHP I'll mess
with my current PHP 5.1.2 (cgi-fcgi) config lost (this is
what happend on the old box, I could get each (Typo, and PHP
apps) to work, but not at the same time!
 
> but in either case, I would recommend installing drupal
from source
> instead of ports.  FreeBSD ports assumes that you want
to run apache for
> everything and as soon as you do anything more
interesting than that it
> gets confused.

I actually have Drupal installed from source, or at least
all the PHP, since I run the latest, 4.7 on my current box. 
I tried the install of the port just to have it take care of
the deps, so I was hoping this message is telling.

> alternatively, you can standardize on apache, run
mod_php for php, and
> fastcgi for rails apps.  I personally like lighttpd
better than apache
> for most things, but this is a matter of personal
preference.

I do have mod_fcgi installed for Apache, if I can't get the
above to work I'd just like to use Apache for everything
(tried moving everything to Lighttpd, but after 5 years I
have a somewhat complicated httpd.conf, and I'm not having
success duplicating some of the syntax in lighttpd.conf. 
I'm not giving up, but want to get my new box up first,
then work on migrating over to Light)

Thanks!

P


> 
> cheers,
> 
> Ben
> 
> phil wrote:
>> 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] [rootchavez
/usr/ports/www/drupal]# make install
>> This port requires the Apache Module or the CGI
version of PHP, but you
> have
>> already installed a PHP port without them.
>> *** Error code 1
>>
>> Stop in /usr/ports/www/drupal.
>>
>> [12:19:15] [rootchavez
/usr/ports/www/drupal]# php -v
>> PHP 5.1.2 (cgi-fcgi) (built: May  1 2006 01:49:37)
>> Copyright (c) 1997-2006 The PHP Group
>> Zend Engine v2.1.0, Copyright (c) 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.
>>
>> Thanks
>>
>> P
>>

_______________________________________________
Typo-list mailing list
Typo-listrubyforge.org
http:
//rubyforge.org/mailman/listinfo/typo-list
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )