Alvaro Lopez Ortega | 1 Mar 2010 10:22
Favicon
Gravatar

Re: Cherokee and WP Supercache

On 28/02/2010, at 10:24, Davide Salerno 2 wrote:

> I'm tryng to translate WP Supercache's htaccess rules for Cherookee but I've some problems because I
don't know how I can replace some RewriteCond variables (for example REQUEST_METHOD, HTTP:Cookie,
HTTP_USER_AGENT) etc in Cherokee-Admin

You'd to add a Behavior Rule of each of those entries:

  http://www.cherokee-project.com/doc/config_virtual_servers.html#behavior

For instance, HTTP:Cookie and HTTP_USER_AGENT entries can be rewritten by using the "Header" rule type.
As for REQUEST_METHOD, you'd have to add a new "HTTP method" rule.

--
Octality
http://www.octality.com/
Ryan McIntosh | 1 Mar 2010 16:36
Picon

Sporadic SSL Bad signature Error

Hi all,

I am running cherokee 0.99.43 on www.bestbridalprices.com

I am getting sporadic bad SSL cert errors on this domain.  The certificate has been in place since 2008 and this just stated happening about a week after I upgraded to 0.99.43.  The error doesn't happen consistently and there are no errors or related messages in the log files.  The issue appears to correct itself.  What can I look for to determine the cause of this error.

Ryan

_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee
Voltron | 2 Mar 2010 09:48

Re: Static content handler question

Thanks!

On Feb 27, 11:19 pm, Alvaro Lopez Ortega <alv... <at> octality.com> wrote:
> On 27/02/2010, at 22:41, Voltron wrote:
>
>
>
> > I have 2 information sources served on different ports using the
> > reverse -proxy method. I have started the process from the folder "/
> > web-data" and not /var/www. The static files also live in the /web-
> > data folder. My questions are:
>
> > 1. Should I set the final flag to each folder under media as below
>
> > /web-data/media/css                                 final
> > /web-data/media/js                                  final
> > /web-data/media/images                              final
>
> > or would a single line like :
>
> > /web-data/media
>
> > suffice?
>
> Setting /web-data/media to use the "Static content" handler would be enough. If you do not want to apply
any further rules (in the Behavior rules list) to the requests targeting that directory, just configure
the rule as final. It will save a few evaluation and will make you server slightly faster. Odds are you want
the rule to be 'final'.
>
> > 2. Why do each of my virtual hosts show "2 domains" instead of one? I
> > have only set the virtual host to answer requests to the regex
> > *mydomain.com
>
> The virtual server's nickname is also used as a target name.
>
> --
> Octalityhttp://www.octality.com/
>
> _______________________________________________
> Cherokee mailing list
> Chero... <at> lists.octality.comhttp://lists.octality.com/listinfo/cherokee
Szász Botond | 2 Mar 2010 12:44
Picon
Favicon

Re: 504 Gateway timeouts under minimal load

This is for nginx / lighttpd but probably is valid for Cherokee too:
http://blog.taragana.com/index.php/archive/how-to-stop-crashing-hanging-of-php-cgi-spawn-fcgi-with-nginx-lighttpd/

----- Original Message ----
From: Alvaro Lopez Ortega <alvaro <at> octality.com>
To: Ryan McIntosh <thebigslide <at> gmail.com>
Cc: cherokee <at> lists.octality.com
Sent: Thu, February 18, 2010 4:50:34 PM
Subject: Re: [Cherokee] 504 Gateway timeouts under minimal load

Hello Ryan,

“Been there, did that..” :-)

Actually, it isn't that easy. There are quite a few additional cases to take into account.

For instance: the PHP interpreter may require up to ~5 seconds to get started  (it's got a whole lot of
dependencies to initialize). What would happen in a high load server? Let's suppose it takes 1sec to
php-cgi to open the TCP port, and that your server has 100 hits/sec. It'd spawn 100 copies of php-cgi of
which 99 would fail to initialize.

This is the current code (it isn't trivial to understand):

http://svn.cherokee-project.com/browser/cherokee/trunk/cherokee/source_interpreter.c
http://svn.cherokee-project.com/browser/cherokee/trunk/cherokee/spawner.c
http://svn.cherokee-project.com/browser/cherokee/trunk/cherokee/main.c#L345

Comments, thoughts and improvement proposals are always welcome!

On 18/02/2010, at 15:34, Ryan McIntosh wrote:

> Another catch is if there's an interpreter already listening and all the interpreters' worker threads
are busy - the interpreter will refuse the connection and the spawn will fail because there's a process
listening on that port already.  
> 
> Perhaps an option to send a configurable signal would be helpful.  One could then write a wrapper script to
catch signal X and 'do stuff' - even if that just amounts to logging that the administrator should be
increasing the number of interpreter threads.  
> 
> So the logic could be if there's a live PID, send it the signal - if there's no PID or the process has ended, respawn.
> 
> Ryan
> 
> On Thu, Feb 18, 2010 at 4:48 AM, Alvaro Lopez Ortega <alvaro <at> octality.com> wrote:
> On 18/02/2010, at 11:28, Alejandro Barrera wrote:
> > On Thursday 18 February 2010 11:22:27 Juan J." Martínez wrote:
> >> El mar, 16-02-2010 a las 03:47 -0800, Szász Botond escribió:
> >>> [...]
> >>> As for the minimal load, this is happening on my dev machine where only I
> >>> am using the webserver at a rate of about max. 10 request per minute.
> >>>
> >>> Ideas? Suggestions?
> >>
> >> Hi,
> >>
> >> How many PHP processes hare you spawning? If you have only one process
> >> for PHP (with children serving stuff), when the only one PHP process is
> >> busy you will get that error (if I recall correctly, I have the same
> >> problem at first).
> >>
> >> Check this:
> >>
> >> http://www.fastcgi.com/archives/fastcgi-developers/2009-April/000230.html
> >
> > Because this is happening a lot, maybe having an autospawn option might be a good idea ;) What do you think
about it?
> 
> Cherokee does, in fact, spawn processes if needed.  Basically, it launches a new process whenever it
cannot contact the PHP interpreter (the connection is refused), that's a piece of cake. However, the
tough scenario here is when the connection is accepted, but the php interpreter is frozen. In that case,
there is nothing Cherokee can do but to deactivate the source.
> 
> --
> Octality
> http://www.octality.com/
> 
> _______________________________________________
> Cherokee mailing list
> Cherokee <at> lists.octality.com
> http://lists.octality.com/listinfo/cherokee
> 

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee

      
_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee
Stefan de Konink | 2 Mar 2010 12:50
Picon
Gravatar

Re: 504 Gateway timeouts under minimal load

Op 02-03-10 12:44, Szász Botond schreef:
> This is for nginx / lighttpd but probably is valid for Cherokee too:
> http://blog.taragana.com/index.php/archive/how-to-stop-crashing-hanging-of-php-cgi-spawn-fcgi-with-nginx-lighttpd/

Since there is a Lighttpd php thingie, why not use that?

Stefan
_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee
Gunnar Wolf | 2 Mar 2010 15:34
Gravatar

Re: Settin gup BackupPC with Cherokee

Alvaro Lopez Ortega dijo [Fri, Feb 26, 2010 at 10:06:21AM +0100]:
> > Has anybody had experience with this?  I'm trying to port over our
> > installation of BackupPC to Cherokee.  So far, I've gotten the
> > basic CGI interface (normally with Apache) to work, but I'm
> > somewhat interested in the mod_perl setup of BackupPC.
> > 
> > If anybody can point me in the right direction, I'd appreciate it.
> > 
> > http://backuppc.sourceforge.net/faq/BackupPC.html#step_9__cgi_interface
> 
> AFAIK there is no way to use mod_perl scripts outside an Apache
> server. The BackupPC project would have to port their software to
> some of the standard web application gateways: FastCGI, SCGI or even
> HTTP.

Yes - This is one of the reasons I stopped developing mod_perl
applications: Portability. Mod_perl is basically a Perl binding for
the Apache API, which gives you great advantages, but ties any
development you make to Apache. Of course, this meant migrating from
Apache 1.x to 2.x was a royal pain; there was minor pain already in
the 2.x series... and my applications cannot be run without Apache at
all. 

Further, I have only done one application which really requires
mod_perl (i.e. uses hooks for parts of the request handling other than
content generation). And deploying your application is painful for
users other than yourself.

So, yes, I suggest you approach the backuppc authors asking for a
non-mod_perl deployment technique.

--

-- 
Gunnar Wolf • gwolf <at> gwolf.org • (+52-55)5623-0154 / 1451-2244
_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee
Michiel van Es | 3 Mar 2010 12:00
Picon
Favicon

question about mono en aspx files

Hi,

I finally manage to install mono and use it with cherokee.
I have the following structure:

[root <at> pcintelw01 kpn_locatienet_com]# pwd
/var/www/kpn_locatienet_com

[root <at> pcintelw01 kpn_locatienet_com]# ls
global.config                          kpn_locatienet_com.sln  root
kpn_locatienet_com.4.5.resharper.user  kpn_locatienet_com.suo

in the /root folder :

[root <at> pcintelw01 root]# ls
App_Code         Default.aspx     services                       vssver2.scc
App_Data         Default.aspx.cs  Test.aspx                      Web.config
aspnet_client    deploy.cmd       Test.aspx.cs                   xml
Bin              Global.asax      testpage.htm
crossdomain.xml  images           TrafficSummaryControl.ascx
css              script           TrafficSummaryControl.ascx.cs

I try to use the wizard but don't know what to put at the Document Root 
and what at the Project Directory.

I get an error no mather what Ifill in at the Project Directory folder:

/var/www/kpn_locatienet_com: Directory doesn't look like a Mono based 
project.

/var/www/kpn_locatienet_com/root: Directory doesn't look like a Mono 
based project.

How can I fire up my aspx website in cherokee? :)

Kind regards,

Michiel
Denis Martinez | 3 Mar 2010 15:04
Picon

Patch: chroot support for information sources

Hello everyone,
here's my first try to contribute to this awesome project :)

My problem is that you can specify a chroot directory for the webserver itself, but the scripts always run in the normal root.
This patch allows to associate a chroot directory to an information source, without need for external software.
If specified, the forked process will chroot() to this directory before executing.
I've implemented it in both local and shm spawn methods, added the admin entry, and path checking.
I've only tried the shm method though, it's currently running on my production server without problems.

_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee
Anoop Alias | 4 Mar 2010 21:06
Picon

RT using cherokee

Hello,

It would be great if someone could guide me on how to run configure cherokee to run RT ( http://bestpractical.com/rt/ ) using cherokee

The following guide have some help for lighttpd and nginx ; but nothing for cherokee

I think with the inbuilt spawner it would be most easy to handle the

=====================
/usr/share/request-tracker3.6/libexec/mason_handler.fcgi
=====================

Thanks a bunch in advance

Anoop
--
Anoop P Alias (PGP Key ID : 0x014F9953)
GNU system administrator
http://GnuSys.net

_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee
M. David Peterson | 6 Mar 2010 04:05
Gravatar

Re: question about mono en aspx files

On Wed, Mar 3, 2010 at 4:00 AM, Michiel van Es <mve <at> pcintelligence.nl> wrote:

[root <at> pcintelw01 root]# ls
App_Code         Default.aspx     services                       vssver2.scc
App_Data         Default.aspx.cs  Test.aspx                      Web.config
aspnet_client    deploy.cmd       Test.aspx.cs                   xml
Bin              Global.asax      testpage.htm
crossdomain.xml  images           TrafficSummaryControl.ascx
css              script           TrafficSummaryControl.ascx.cs

Your primary issue can be seen on line 16 and then lines 56-61 of http://svn.cherokee-project.com/browser/cherokee/trunk/admin/Wizard_Mono.py

http://svn.cherokee-project.com/browser/cherokee/trunk/admin/Wizard_Mono.py#L16
http://svn.cherokee-project.com/browser/cherokee/trunk/admin/Wizard_Mono.py#L56

Because your dealing with a case sensitive file system, default.aspx (what it's looking for) and Default.aspx (the name of the file in your directory) are seen as different and therefore throws the error specified on line 16. As far as the Python standard lib is concerned http://docs.python.org/library/os.path.html should help in finding a proper long term solution to dealing with case sensitive and insensitive file systems as if they were the same.
 
I try to use the wizard but don't know what to put at the Document Root
and what at the Project Directory.

I'm not sure why this particular format was chosen, but my guess is that this was one way of separating what was handled by Mono (Project Directory) and what was handled directly by Cherokee (the Document Root). Can someone clarify?  And if yes I would personally recommend moving away from this method as this is a non-standard way to deploy an ASP.NET application (especially those that have been packaged into zip files and deployed as one file to the server, something Mono now supports) which I'm guessing is the cause for confusion for Michiel.

I get an error no mather what Ifill in at the Project Directory folder:

/var/www/kpn_locatienet_com: Directory doesn't look like a Mono based
project.

That's because of the same reason mentioned above except this time it's the fact that the neither index.aspx or default.aspx, regardless of case, exist in that folder.
 

/var/www/kpn_locatienet_com/root: Directory doesn't look like a Mono
based project.

This is the case sensitivity issue mentioned above.
 
How can I fire up my aspx website in cherokee? :)

Does anyone have any issues we me rewriting the Mono_Wizard.py to use the method mentioned above and/or write a second Wizard and provide both methods as an option?

--
/M:D

M. David Peterson
Co-Founder & Chief Architect, 3rd&Urban, LLC
Email: m.david <at> 3rdandUrban.com | m.david <at> amp.fm
Mobile: (206) 999-0588
http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354 | http://broadcast.oreilly.com/m-david-peterson/
_______________________________________________
Cherokee mailing list
Cherokee <at> lists.octality.com
http://lists.octality.com/listinfo/cherokee

Gmane