Re: [Catalyst] How to build a catalyst system based on plug in ?
--- On Wed, 5/21/08, Solli Honorio <[EMAIL PROTECTED]> wrote: > From: Solli Honorio <[EMAIL PROTECTED]> > Subject: [Catalyst] How to build a catalyst system based on plug in ? > To: catalyst@lists.scsys.co.uk > Date: Wednesday, May 21, 2008, 11:54 PM > Hi, > > I'm thinking about to build one system to manager > services on distributed > Linux machine on central console, something like webmin but > to manager all > services of many server on one single console. > > I would like to know about the best strategic to build this > system based on > plug in on a MVC environment , things like: > * how to build a interface that would be easy to plug in > add new feature to > user interface ? > * how to build a model that plug in could increments tables > without worry > about the sql server used ? > * what is the best way to load plug ins on a MVC > environment ? > * and any other that I can't think by now but you can > advice me ! > > Thanks all, > > Solli > Honorio You have a lot going on here. I recommend you start by looking at some open source monitoring tools, rather than building everything up from scratch. It sounds to me like you're going to need software running on each of the monitored boxes and some sort of message queue that the central system is monitoring. If I had to build this custom I imagine I'd write scripts on each of the monitored boxes that would insert report data into shared database, or maybe use a job queue like TheSchwartz to help me manage that. Then I'd have some sort of alerting system, probably via email or SMS for critical alerts. Catalyst could be used for a web front end to give you a sort of global dashboard. So I think 1) Catalyst can play a role here, but it's not going to be the center of your system, 2) you need to looking at some existing opensource monitoring tools, 3) come back to us with more detailed, "How do I" sort of questions. I don't think anyone here is going be able to write your technical specification for you! John ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re[3]: [Catalyst] uri_for() doesn't encode to utf8 first argument
People? what about my patch? I heven't got received any response. I'll be glad to now some news. Thanks. -- dreelmailto:[EMAIL PROTECTED] Dmitriy S. Sinyavskiy Web-developerPerl, Catalyst, MSSQL FGUE EZANTelecommunication, data transfer networks and devices. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Userpasswords
Hi, what's the common way to add user with encrypted passwords with the algorithm i've chosen in the config . There are nice plugins for authenticating users but no for create new users. I tried to write a hook for the schema, but it won't work. Can anyone give me a working solution ? Stephan ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Catalyst using fast CGI
Dear List I am trying to get Catalyst working through apache by using fastcgi. I am having difficulty in achieving this. This problem is that I seam to be getting apache error code 13. My config for my website is: ServerName www.dnsemail.co.uk DocumentRoot /var/www/dnsemail ErrorLog logs/www.dnsemail.co.uk.error_log TransferLog logs/www.dnsemail.co.uk.access_log # Allow CGI script to run Options +ExecCGI # Tell Apache this is a FastCGI application Alias / /var/www/dnsemail/script/dnsemail_fastcgi.pl/ SetHandler fastcgi-script Options ExecCGI Order allow,deny Allow from all AddHandler fcgid-script .pl I am running it on Fedora Core 6 with Apache 2. Can someone point me in the right direction in getting Catalyst framework running under Apache 2. Regards Gordon ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] uri_for() doesn't encode to utf8 first argument
On Thu, May 22, 2008 at 09:05:40PM +0400, Dmitriy S. Sinyavskiy wrote: > > People? what about my patch? I heven't got received any response. > I'll be glad to now some news. > Thanks. Check the archives - you had a reply a few days ago - "patch looks ok, but no tests" was the gist I think. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Q: What's tiny and yellow and very, very, dangerous? A: A canary with the super-user password. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Userpasswords
On Thu, May 22, 2008 at 12:48 PM, Stephan Jennewein <[EMAIL PROTECTED]> wrote: > Hi, > > what's the common way to add user with encrypted passwords with the algorithm > i've chosen in the config . There are nice plugins for authenticating users > but no for create new users. I tried to write a hook for the schema, but it > won't work. Can anyone give me a working solution ? > > Stephan > That depends how you are storing the users, which you didn't really explain. I'll just assume that you are using Catalyst::Authentication::Store::DBIx::Class and have a DBIx::Class schema class that you store your users in. If that assumption is correct, simply use DBIx::Class::EncodedColumn http://search.cpan.org/~groditi/DBIx-Class-EncodedColumn-0.1/lib/DBIx/Class/EncodedColumn.pm -J ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: Re[3]: [Catalyst] uri_for() doesn't encode to utf8 first argument
On Thu, May 22, 2008 at 10:05 AM, Dmitriy S. Sinyavskiy <[EMAIL PROTECTED]> wrote: > > People? what about my patch? I heven't got received any response. > I'll be glad to now some news. > Thanks. > Your mailserver is rejecting mail. I suggest fixing your mail server or viewing the list archives to make sure that you're not missing things. Thread: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg02771.html ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst using fast CGI
* On Thu, May 22 2008, [EMAIL PROTECTED] wrote: > Dear List > > I am trying to get Catalyst working through apache by using fastcgi. I am > having difficulty in achieving this. This problem is that I seam to be > getting apache error code 13. My config for my website is: > > > ServerName www.dnsemail.co.uk > DocumentRoot /var/www/dnsemail > ErrorLog logs/www.dnsemail.co.uk.error_log > TransferLog logs/www.dnsemail.co.uk.access_log > > > # Allow CGI script to run > > Options +ExecCGI > > > # Tell Apache this is a FastCGI application >Alias / /var/www/dnsemail/script/dnsemail_fastcgi.pl/ > > > SetHandler fastcgi-script > > > > Options ExecCGI > Order allow,deny > Allow from all > AddHandler fcgid-script .pl > > > > I am running it on Fedora Core 6 with Apache 2. Can someone point me in > the right direction in getting Catalyst framework running under Apache 2. I don't use mod_fcgid (I do use mod_fastcgi), but it seems odd to not have a directive like "FastCgiServer" somewhere. I guess the AddHandler could be doing that, but since it's not working, probably not. http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiServer Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Userpasswords
* On Thu, May 22 2008, J. Shirley wrote: > On Thu, May 22, 2008 at 12:48 PM, Stephan Jennewein <[EMAIL PROTECTED]> wrote: >> Hi, >> >> what's the common way to add user with encrypted passwords with the algorithm >> i've chosen in the config . There are nice plugins for authenticating users >> but no for create new users. I tried to write a hook for the schema, but it >> won't work. Can anyone give me a working solution ? >> >> Stephan >> > > That depends how you are storing the users, which you didn't really explain. > > I'll just assume that you are using > Catalyst::Authentication::Store::DBIx::Class and have a DBIx::Class > schema class that you store your users in. > > If that assumption is correct, simply use DBIx::Class::EncodedColumn > > http://search.cpan.org/~groditi/DBIx-Class-EncodedColumn-0.1/lib/DBIx/Class/EncodedColumn.pm As an aside, here's the script I use for creating password hashes (using EncodedColumn and Bcrypt): use strict; use warnings; use DBIx::Class::EncodedColumn::Crypt::Eksblowfish::Bcrypt; use Term::ReadLine; chomp(my $password = Term::ReadLine->new($0)->readline('Password> ')); print DBIx::Class::EncodedColumn::Crypt::Eksblowfish::Bcrypt-> make_encode_sub->($password), "\n"; Yes, the password is echoed. Regards, Jonathan Rockway -- print just => another => perl => hacker => if $,=$" ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Userpasswords
Hi Stephan, On 22.05.2008, at 21:48, Stephan Jennewein wrote: what's the common way to add user with encrypted passwords with the algorithm i've chosen in the config . There are nice plugins for authenticating users but no for create new users. I tried to write a hook for the schema, but it won't work. Can anyone give me a working solution ? I did this by overriding the store_column method like this: sub store_column { my( $self, $col, $val ) = @_; $val = Digest::SHA::sha1_hex( $val ) if $col eq 'password_hash'; return $self->next::method( $col, $val ); } Hope this helps! --Tobias ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst using fast CGI
Gordon, I've had good luck with mod_fcgid. If you want to give that a try, yum install mod_fcgid and use a config similar to this one. Good Luck, /Mitchell K. Jackson ServerName myapp ServerAlias 127.0.0.1 myapp ServerAdmin [EMAIL PROTECTED] ErrorLog logs/myapp_error_log CustomLog logs/myapp_access_log combined DocumentRoot /var/www/myapp/root Alias /static /var/www/myapp/root/static SuexecUserGroup myapp myapp SetHandler default-handler Alias / /var/www/myapp/script/myapp_fastcgi.pl/ Options ExecCGI Order allow,deny Allow from all AddHandler fcgid-script .pl Options FollowSymLinks AllowOverride None Order allow,deny Allow from all On Thu, May 22, 2008 at 2:27 PM, <[EMAIL PROTECTED]> wrote: > Dear List > > I am trying to get Catalyst working through apache by using fastcgi. I am > having difficulty in achieving this. This problem is that I seam to be > getting apache error code 13. My config for my website is: > > > ServerName www.dnsemail.co.uk >DocumentRoot /var/www/dnsemail >ErrorLog logs/www.dnsemail.co.uk.error_log >TransferLog logs/www.dnsemail.co.uk.access_log > > ># Allow CGI script to run > >Options +ExecCGI > > ># Tell Apache this is a FastCGI application > Alias / /var/www/dnsemail/script/dnsemail_fastcgi.pl/ > > >SetHandler fastcgi-script > > > >Options ExecCGI >Order allow,deny >Allow from all >AddHandler fcgid-script .pl > > > > I am running it on Fedora Core 6 with Apache 2. Can someone point me in > the right direction in getting Catalyst framework running under Apache 2. > > > Regards > > Gordon > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst using fast CGI
[EMAIL PROTECTED] wrote: Dear List I am trying to get Catalyst working through apache by using fastcgi. I am having difficulty in achieving this. This problem is that I seam to be getting apache error code 13. My config for my website is: ServerName www.dnsemail.co.uk DocumentRoot /var/www/dnsemail ErrorLog logs/www.dnsemail.co.uk.error_log TransferLog logs/www.dnsemail.co.uk.access_log # Allow CGI script to run Options +ExecCGI # Tell Apache this is a FastCGI application Alias / /var/www/dnsemail/script/dnsemail_fastcgi.pl/ SetHandler fastcgi-script Options ExecCGI Order allow,deny Allow from all AddHandler fcgid-script .pl I am running it on Fedora Core 6 with Apache 2. Can someone point me in the right direction in getting Catalyst framework running under Apache 2. Regards Gordon ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ Here's the setup I use for all my sites, using FastCGI on Fedora 9. htpd.conf -- # CatalystSites.org FastCgiServer /var/www/catalystsites.org/script/catalystsites_fastcgi.pl ServerName www.catalystsites.org DocumentRoot /var/www/catalystsites.org/root SetHandler default-handler #Alias /var/www/catalystsites.org/root/static Alias / /var/www/catalystsites.org/script/catalystsites_fastcgi.pl/ --- You may launch your app as a standalone server listening on a socket (http://search.cpan.org/~zarquon/Catalyst-Manual-5.7011/lib/Catalyst/Manual/Cookbook.pod#FastCGI_Deployment) script/catalystsites_fastcgi.pl -l /tmp/catalystsites.socket -n 5 -p /tmp/catalystsites.pid -d As Jonathan pointed out, "FastCgiServer /var/www/catalystsites.org/script/catalystsites_fastcgi.pl" should be required. Hope that helps. [stephen] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst using fast CGI
On Thu, May 22, 2008 at 6:12 PM, Stephen Sykes <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: >> >> Dear List >> >> I am trying to get Catalyst working through apache by using fastcgi. I am >> having difficulty in achieving this. This problem is that I seam to be >> getting apache error code 13. My config for my website is: >> >> >> ServerName www.dnsemail.co.uk >>DocumentRoot /var/www/dnsemail >>ErrorLog logs/www.dnsemail.co.uk.error_log >>TransferLog logs/www.dnsemail.co.uk.access_log >> >> >># Allow CGI script to run >> >>Options +ExecCGI >> >> >># Tell Apache this is a FastCGI application >> Alias / /var/www/dnsemail/script/dnsemail_fastcgi.pl/ >> >> >>SetHandler fastcgi-script >> >> >> >>Options ExecCGI >>Order allow,deny >>Allow from all >>AddHandler fcgid-script .pl >> >> >> >> I am running it on Fedora Core 6 with Apache 2. Can someone point me in >> the right direction in getting Catalyst framework running under Apache 2. >> >> >> Regards >> >> Gordon >> >> >> ___ >> List: Catalyst@lists.scsys.co.uk >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: >> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ >> Dev site: http://dev.catalyst.perl.org/ >> >> > > Here's the setup I use for all my sites, using FastCGI on Fedora 9. > > htpd.conf > -- > > # CatalystSites.org > FastCgiServer /var/www/catalystsites.org/script/catalystsites_fastcgi.pl > > > ServerName www.catalystsites.org > DocumentRoot /var/www/catalystsites.org/root > > > SetHandler default-handler > > > #Alias /var/www/catalystsites.org/root/static > Alias / /var/www/catalystsites.org/script/catalystsites_fastcgi.pl/ > > > --- > > You may launch your app as a standalone server listening on a socket > (http://search.cpan.org/~zarquon/Catalyst-Manual-5.7011/lib/Catalyst/Manual/Cookbook.pod#FastCGI_Deployment) > script/catalystsites_fastcgi.pl -l /tmp/catalystsites.socket -n 5 -p > /tmp/catalystsites.pid -d > > As Jonathan pointed out, "FastCgiServer > /var/www/catalystsites.org/script/catalystsites_fastcgi.pl" should be > required. Hope that helps. > > [stephen] > The FastCgiServer directive is not required when using mod_fcgid. If you want Apache to control your fastcgi processes and not give you a lot of options, mod_fcgid should work fine. However, if you are having trouble give mod_fastcgi a try as I've found it to be more verbose with errors and a bit easier to work with. -J ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/