[Mongrel] Ruby+Apache2.2+ProxyLoadBalance ...... +PHP??

2006-08-30 Thread Jean Verger
Hi,I just realice that I can't run php code anymore once I installed my dear mongrels (under an Apache Proxy Balancer).I'm just trying to run the clasic phpinfo() in the following file /var/rubyapp/public/phpinfo.php ... but instead of being executed the code is being displayed as plain text ... This is the ouput :)) 
 ?PHP phpinfo(); ?anyone can give a hint please on how to have Ruby and PHP code under Apache Proxy Balancer?thanks a lot ,Juan
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Ruby+Apache2.2+ProxyLoadBalance ...... +PHP??

2006-08-30 Thread James Ludlow
On 8/30/06, Jean Verger [EMAIL PROTECTED] wrote:
 Hi,
 I just realice that I can't run php code anymore once I installed my dear
 mongrels (under an Apache Proxy Balancer).

 I'm just trying to run the clasic phpinfo() in the following file
 /var/rubyapp/public/phpinfo.php ... but instead of being executed the code
 is being displayed as plain text ... This is the ouput :))

 ?PHP phpinfo(); ?

 anyone can give a hint please on how to have Ruby and PHP code under  Apache
  Proxy  Balancer?


Is your Rails app on a different virtual host than your PHP app?  If
it is, this shouldn't be a problem.

Can you post the relevant config files?

-- James
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Ruby+Apache2.2+ProxyLoadBalance ...... +PHP??

2006-08-30 Thread Philip Hallstrom
 Hi,
 I just realice that I can't run php code anymore once I installed my dear
 mongrels (under an Apache Proxy Balancer).

 I'm just trying to run the clasic phpinfo() in the following file
 /var/rubyapp/public/phpinfo.php ... but instead of being executed the code
 is being displayed as plain text ... This is the ouput :))

   ?PHP phpinfo(); ?

 anyone can give a hint please on how to have Ruby and PHP code under
 Apache  Proxy  Balancer?

My httpd.conf looks like this (excluding the parts that bring in standard 
PHP stuff).  Works fine for us.  The only thing that doesn't work are URLs 
like: http://foo/path/to/phpscript.php/path/info/here.

   Proxy balancer://mongrel_cluster
 BalancerMember http://127.0.0.1:8805
   /Proxy

   RewriteEngine On

   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -d
   RewriteRule ^(.+[^/])$ $1/ [R]

   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} \.php
   RewriteRule ^(.*)$ $1 [QSA,L]

   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME}/index.html -f
   RewriteRule ^(.*)$ $1/index.html [QSA,L]

   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME}/index.php -f
   RewriteRule ^(.*)$ $1/index.php [QSA,L]

   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} -d
   RewriteRule ^(.*)[^/]$ $1/ [QSA,L]

   RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
   RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


[Mongrel] Mongrel service never starts

2006-08-30 Thread Guillaume Carbonneau
I'm ona Win2K server environnement running ruby 1.8.5 and mongrel

I've followed the tutorial and everything went fine until I start the service...

Here is the output I'm getting :

C:\ruby\bin­­mongrel_rails service::start -N inventaire
One moment, start pending
One moment, stopped

One moment, stopped

One moment, stopped

One moment, stopped

One moment, stopped

and so on ( One moment, stopped messagekeeps popping)

any idea?

Guillaume Carbonneau
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] Mongrel service never starts

2006-08-30 Thread Luis Lavena
On 8/30/06, Guillaume Carbonneau [EMAIL PROTECTED] wrote:

 I'm on a Win2K server environnement running ruby 1.8.5 and mongrel

 I've followed the tutorial and everything went fine until I start the
 service...

 Here is the output I'm getting :

 C:\ruby\bin­­mongrel_rails service::start -N inventaire
 One moment, start pending
 One moment, stopped

 One moment, stopped

 One moment, stopped

 One moment, stopped

 One moment, stopped
 
 and so on ( One moment, stopped message keeps popping)

 any idea?


Hi Guillaume,

That often means your application crashed.

Have you tried running it with mongrel_rails first?

Mongrel is compatible with 1.8.4, no official testing was made with
1.8.5, nor for Rails (which seems to brake some things).

As I said, try running from command line mongrel_rails start and
check if your application start ok, if so, the problem could be
checked from the log/service.log file into your application directory.

Hope that helps,

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Mongrel service never starts

2006-08-30 Thread Jay Turpin
Definitely try it with mongrel_rails start first. For me, my server was missing the version of Rails that my app was expecting.-- -- Jay TurpinOne test is worth a thousand expert opinions. - Bill Nye (The Science Guy)

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Re: [Mongrel] No log/mongrel.log file under win32.

2006-08-30 Thread carmen
On Wed Aug 30, 2006 at 11:00:01PM -0300, Luis Lavena wrote:
 To follow up this bug report:
 
 When you run mongrel_rails without the daemonize option -d on
 *nix, it also don't generate log/mongrel.log file!
 
 Because win32 cannot Process.fork like *nix,

it can. check out the win32 utils on rubyforge. its emulated with Create 
process and dup'ing pipes or something. not exactly fast or bugfree, in fact, 
every script ive tried except the example one included in the win32 tools 
behaved exceedingly weird ..

 should it start
 logging to logfile after showing Ctrl+C option?
 
 Suggestions are welcome on how to reply to this feature.
 
 -- 
 Luis Lavena
 Multimedia systems
 -
 Leaders are made, they are not born. They are made by hard effort,
 which is the price which all of us must pay to achieve any goal that
 is worthwhile.
 Vince Lombardi
 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users
 
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] No log/mongrel.log file under win32.

2006-08-30 Thread Luis Lavena
On 8/31/06, carmen [EMAIL PROTECTED] wrote:
 On Wed Aug 30, 2006 at 11:00:01PM -0300, Luis Lavena wrote:
  To follow up this bug report:
 
  When you run mongrel_rails without the daemonize option -d on
  *nix, it also don't generate log/mongrel.log file!
 
  Because win32 cannot Process.fork like *nix,

 it can. check out the win32 utils on rubyforge. its emulated with Create 
 process and dup'ing pipes or something. not exactly fast or bugfree, in fact, 
 every script ive tried except the example one included in the win32 tools 
 behaved exceedingly weird ..

Hehe, THAT'S why I said win32 cannot do fork like *nix.

Every tool that try to emulate the way it behave will fail... is not
the same, will not work the same way... nor even twice.


So, for sake of functionality, users doing development on windows,
should get log/mongrel.log file created? Or only when running them
with -d option?

The idea is same or similar functionality on any platform.


  should it start
  logging to logfile after showing Ctrl+C option?
 
  Suggestions are welcome on how to reply to this feature.
 
  --
  Luis Lavena
  Multimedia systems
  -
  Leaders are made, they are not born. They are made by hard effort,
  which is the price which all of us must pay to achieve any goal that
  is worthwhile.
  Vince Lombardi
  ___
  Mongrel-users mailing list
  Mongrel-users@rubyforge.org
  http://rubyforge.org/mailman/listinfo/mongrel-users
 
 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users



-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


[Mongrel] Apache SSL - Redirects going to http:// not https://

2006-08-30 Thread Bryan Thompson
Hi guys,

I have a (hopefully) quick question about ssl and mongrel.  We are  
using Apache2 and the proxy balancer module to control a pack of  
mongrels.  This is a brand new setup, as our server had been using  
Apache 1.3 with no mongrels at all. The speed boost has been great,  
and we are not getting any of the previous errors that were caused by  
FastCGI.  I am having a strange problem nonetheless.

At seemingly random times, redirect_to tags are sending the user to  
http:// instead of https://, and since :80 is shut off, they are  
seeing ugly errors.  In my development.log I see the normal lines I  
used to see when my process finished, but it's clearly redirecting  
to :80.

 .
 SQL (0.000165)   COMMIT
 Redirected to http://.edu/install/editSettings

That should definitely be https, and when I put the s in manually, it  
works fine.  Is there some mongrel (or apache) config property I need  
that I don't have?

This post looks relevant (http://rubyforge.org/pipermail/mongrel- 
users/2006-May/000185.html), so I'm going to play with it a little  
bit.  If anyone has any suggestions, I greatly appreciate it.

Thanks,

Bryan
___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users


Re: [Mongrel] Apache SSL - Redirects going to http:// not https://

2006-08-30 Thread Bryan Thompson
I'm currently figuring out how to install the mod_headers apache  
module, but I think I'm on the right track now.  Hurray for archives :)

Bryan

On Aug 30, 2006, at 11:00 PM, Bryan Thompson wrote:

 Hi guys,

 I have a (hopefully) quick question about ssl and mongrel.  We are
 using Apache2 and the proxy balancer module to control a pack of
 mongrels.  This is a brand new setup, as our server had been using
 Apache 1.3 with no mongrels at all. The speed boost has been great,
 and we are not getting any of the previous errors that were caused by
 FastCGI.  I am having a strange problem nonetheless.

 At seemingly random times, redirect_to tags are sending the user to
 http:// instead of https://, and since :80 is shut off, they are
 seeing ugly errors.  In my development.log I see the normal lines I
 used to see when my process finished, but it's clearly redirecting
 to :80.

 .
 SQL (0.000165)   COMMIT
 Redirected to http://.edu/install/editSettings

 That should definitely be https, and when I put the s in manually, it
 works fine.  Is there some mongrel (or apache) config property I need
 that I don't have?

 This post looks relevant (http://rubyforge.org/pipermail/mongrel-
 users/2006-May/000185.html), so I'm going to play with it a little
 bit.  If anyone has any suggestions, I greatly appreciate it.

 Thanks,

 Bryan
 ___
 Mongrel-users mailing list
 Mongrel-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/mongrel-users

___
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users