Re: [Catalyst] mix authentication stores
Matt S Trout escribió: Catalyst::Authentication::Credential::Authen::Simple should do the trick. http://search.cpan.org/~jlmartin/Catalyst-Authentication-Credential-Authen-Simple-0.02/lib/Catalyst/Authentication/Credential/Authen/Simple.pm becasue Authen::Simple does support LDAP. Fucking awesome. Thanks. :) This needs to be more widely publicised, do you think you could do doc patches fr C::P::Authentication and a wiki write up? :) I'll try to get some time to do it... Jose Luis Martinez [EMAIL PROTECTED] ___ 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] Sending E-Mails
Hallo catalyst friends, I created a simple form for contact informations ( using email, FormFu ). When I use Catalysts built-in HTTP server receiving e-mails from this form works fine. As soon as I run the app using FastCGI and Apache no emails will be send. At the moment I really don't know if it is a catalyst, a postfix or an apache problem. So it would be helpfull if somebody could push me in the right direction. Any help is welcome Götz ___ 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/
AW: [Catalyst] Sending E-Mails
Would be great if you had told us how you're sending the mails. Catalyst::View::Email? Regards, Alex -Ursprüngliche Nachricht- Von: goetz [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 02. Oktober 2008 12:32 An: The elegant MVC web framework Betreff: [Catalyst] Sending E-Mails Hallo catalyst friends, I created a simple form for contact informations ( using email, FormFu ). When I use Catalysts built-in HTTP server receiving e-mails from this form works fine. As soon as I run the app using FastCGI and Apache no emails will be send. At the moment I really don't know if it is a catalyst, a postfix or an apache problem. So it would be helpfull if somebody could push me in the right direction. Any help is welcome Götz ___ 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/ *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please notify the sender and then delete this e-mail immediately. *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* ___ 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] Sending E-Mails
On Thursday 02 October 2008 13:32:24 goetz wrote: > I created a simple form for contact informations ( using email, > FormFu ). > When I use Catalysts built-in HTTP server receiving e-mails from this > form works fine. > > As soon as I run the app using FastCGI and Apache no emails will be > send. > > At the moment I really don't know if it is a catalyst, a postfix or an > apache > problem. > So it would be helpfull if somebody could push me in the right > direction. Not much info given in your email. - how are you sending your emails? using an external SMTP server? or the system MTA? - anything found in the mail logs? maybe the mails got to the mail server and they were rejected/ignored - paste the bits of code that send the email - try isolating the mail code in a small script and run it on the production server as the apache user (or whatever user your app is running under right now). Make sure you don't ignore any errors. -- Bogdan Lucaciu ___ 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: AW: [Catalyst] Sending E-Mails
I running Debian and installed: apt-get install postfix dovecot-imapd dovecot-pop3d policyd-weight in the root controller I have the methods: sub kontakt_email : Local FormConfig { my ( $self, $c ) = @_; my $form = $c->stash->{form}; if ($form->submitted_and_valid) { # Werte speichern $c->stash->{ap} = $form->param_value('ap'); $c->stash->{nachricht} = $form->param_value('nachricht'); $c->stash->{telefon} = $form->param_value('telefon'); $c->stash->{email} = $form->param_value('email'); # E-Mail senden my $params_href = $form->params(); $c->forward('helektra_de::Controller::Root','send_email', [$params_href]); $c->stash->{template} = 'kontakt_email_ok.tt2'; } else { # Fehler } } sub send_email : Local { my ( $self, $c ,$params_href) = @_; $c->stash->{mail_felder} = $params_href, $c->email( header => [ To => '[EMAIL PROTECTED]', Subject => 'Kontaktformular helektra.de', ], body => $c->view('TT')->render($c,'email.tt2'), ); } The code works with the built in server .. Thanks Götz Am 02.10.2008 um 13:12 schrieb Hartmaier Alexander: Would be great if you had told us how you're sending the mails. Catalyst::View::Email? Regards, Alex ___ 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: AW: [Catalyst] Sending E-Mails
I use the email plugin: use Catalyst qw/ -Debug ConfigLoader Static::Simple StackTrace Prototype Email /; Am 02.10.2008 um 13:41 schrieb Moritz Onken: Am 02.10.2008 um 13:30 schrieb goetz: sub send_email : Local { my ( $self, $c ,$params_href) =3D @_; $c->stash->{mail_felder} =3D $params_href, $c->email( header =3D> [ To =3D> '[EMAIL PROTECTED]', Subject =3D> 'Kontaktformular helektra.de', ], body =3D> $c->view('TT')->render($c,'email.tt2'), ); } The code works with the built in server .. Seems like you are not using View::Email. Could you please provide the plugins you are loading in you helektra_de.pm? ___ 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: AW: [Catalyst] Sending E-Mails
Am 02.10.2008 um 13:45 schrieb goetz: I use the email plugin: use Catalyst qw/ -Debug ConfigLoader Static::Simple StackTrace Prototype Email /; Hi, try to configure Plugin::Email to use a smtp server: __PACKAGE__->config->{email} = [ 'SMTP', 'smtp.myhost.com', username => $USERNAME, password => $PASSWORD, ]; replace smtp.myhost.com with localhost, username and password can be blank if your smtp server doesnt require auth for local users. Furthermore you might want to set the attribute of send_email to Private and call the method with $self->send_email($c, $params); Otherwise this method can be called by a request to this controller via a browser. Viele Grüße Moritz ___ 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] Re: fcgid
Hi, On Oct 2, 2008, at 1:29 AM, John Beppu wrote: On Wed, Oct 1, 2008 at 4:15 AM, Pedro Melo <[EMAIL PROTECTED]> wrote: On Sep 30, 2008, at 1:14 AM, Aristotle Pagaltzis wrote: * John Lee <[EMAIL PROTECTED]> [2008-09-29 16:05]: What's the general concensus in the catalyst community nowadays? Is mod_fastcgi preferred at large over mod_fcgid these days? Personally? ::Engine::HTTP::Prefork + ::Plugin::Static::Simple. +1 for ::Engine::HTTP::Prefork. Have any of you ::Engine::HTTP::Prefork users written init scripts for starting and stopping your Catalyst apps? I use a small script running under daemontools. I wanted to release it in the App::* namespace someday, I guess I should do it now. Best regards, -- Pedro Melo Blog: http://www.simplicidade.org/notes/ XMPP ID: [EMAIL PROTECTED] Use XMPP! ___ 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: AW: [Catalyst] Sending E-Mails
Thanks for the hint. But nothing changed. Am 02.10.2008 um 13:51 schrieb Moritz Onken: Am 02.10.2008 um 13:45 schrieb goetz: I use the email plugin: use Catalyst qw/ -Debug ConfigLoader Static::Simple StackTrace Prototype Email /; Hi, try to configure Plugin::Email to use a smtp server: __PACKAGE__->config->{email} = [ 'SMTP', 'smtp.myhost.com', username => $USERNAME, password => $PASSWORD, ]; replace smtp.myhost.com with localhost, username and password can be blank if your smtp server doesnt require auth for local users. Furthermore you might want to set the attribute of send_email to Private and call the method with $self->send_email($c, $params); Otherwise this method can be called by a request to this controller via a browser. Viele Grüße Moritz ___ 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/
[Catalyst] FASTCGI - configuring timeout
Hi, I am stretching the boundaries of the topic here I know but I thought someone might know this off the top of their head. I am getting timeout's. I am 99% sure this is because the Cat App is copying a 500MB file on it filesystem. FastCGI: comm with server "/var/www/MyApp/script/myapp_fastcgi.pl" aborted: idle timeout (30 sec) FastCGI: incomplete headers (0 bytes) received from server "/var/www/MyApp/script/myapp_fastcgi.pl" I can't find any way to configure fastcgi.pl to increase the timeout via the _fastcgi.pl and changes to the httpd.conf seem to make no difference (at least the error always report a 30sec timeout). Can anyone offer any suggestions please? Dp. ___ 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] FASTCGI - configuring timeout
On Thu, Oct 2, 2008 at 7:03 AM, Dermot <[EMAIL PROTECTED]> wrote: > Hi, > > I am stretching the boundaries of the topic here I know but I thought > someone might know this off the top of their head. I am getting > timeout's. I am 99% sure this is because the Cat App is copying a > 500MB file on it filesystem. > > FastCGI: comm with server "/var/www/MyApp/script/myapp_fastcgi.pl" > aborted: idle timeout (30 sec) > FastCGI: incomplete headers (0 bytes) received from server > "/var/www/MyApp/script/myapp_fastcgi.pl" > > > I can't find any way to configure fastcgi.pl to increase the timeout > via the _fastcgi.pl and changes to the httpd.conf seem to make no > difference (at least the error always report a 30sec timeout). > > Can anyone offer any suggestions please? > Dp. Something tells me you didn't use Google: http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServer -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: [Catalyst] FASTCGI - configuring timeout
* Dermot <[EMAIL PROTECTED]> [081002 16:05]: Hi Dermot, > FastCGI: comm with server "/var/www/MyApp/script/myapp_fastcgi.pl" > aborted: idle timeout (30 sec) > FastCGI: incomplete headers (0 bytes) received from server > "/var/www/MyApp/script/myapp_fastcgi.pl" if you consult the mod_fastcgi docs you will find this: http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiServer -idle-timeout n (30 seconds) The number of seconds of FastCGI application inactivity allowed before the request is aborted and the event is logged (at the error LogLevel). The inactivity timer applies only as long as a connection is pending with the FastCGI application. If a request is queued to an application, but the application doesn't respond (by writing and flushing) within this period, the request will be aborted. If communication is complete with the application but incomplete with the client (the response is buffered), the timeout does not apply. > I can't find any way to configure fastcgi.pl to increase the timeout > via the _fastcgi.pl and changes to the httpd.conf seem to make no > difference (at least the error always report a 30sec timeout). What changes to the httpd.conf did you do? Something like this (and restarting the server) should do the job: FastCgiServer /path/to/script/ipacs_fastcgi.pl -processes 3 -idle-timeout 60 Christian -- http://www.lackas.net/ http://www.inviCRO.com/ http://www.spect-ct.com/ ___ 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] FASTCGI - configuring timeout
2008/10/2 Christian Lackas <[EMAIL PROTECTED]>: > * Dermot <[EMAIL PROTECTED]> [081002 16:05]: > > Hi Dermot, > >> FastCGI: comm with server "/var/www/MyApp/script/myapp_fastcgi.pl" >> aborted: idle timeout (30 sec) >> FastCGI: incomplete headers (0 bytes) received from server >> "/var/www/MyApp/script/myapp_fastcgi.pl" > > if you consult the mod_fastcgi docs you will find this: > >http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiServer > -idle-timeout n (30 seconds) > The number of seconds of FastCGI application inactivity allowed > before the request is aborted and the event is logged (at the > error LogLevel). The inactivity timer applies only as long as a > connection is pending with the FastCGI application. If a > request is queued to an application, but the application > doesn't respond (by writing and flushing) within this period, > the request will be aborted. If communication is complete with > the application but incomplete with the client (the response is > buffered), the timeout does not apply. > >> I can't find any way to configure fastcgi.pl to increase the timeout >> via the _fastcgi.pl and changes to the httpd.conf seem to make no >> difference (at least the error always report a 30sec timeout). > > What changes to the httpd.conf did you do? > Something like this (and restarting the server) should do the job: > >FastCgiServer /path/to/script/ipacs_fastcgi.pl -processes 3 -idle-timeout > 60 Thanx Christian. I should have looked there. I had just looked at the options taken by _fastcgi.pl and ter ewasn't anything. Dp. ___ 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/
AW: AW: [Catalyst] Sending E-Mails
Plugin::Email is deprecated, use View::Email instead. Regards, Alex -Ursprüngliche Nachricht- Von: goetz [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 02. Oktober 2008 14:26 An: The elegant MVC web framework Betreff: Re: AW: [Catalyst] Sending E-Mails Thanks for the hint. But nothing changed. Am 02.10.2008 um 13:51 schrieb Moritz Onken: > > Am 02.10.2008 um 13:45 schrieb goetz: > >> >> >> I use the email plugin: >> >> use Catalyst qw/ >> -Debug >> ConfigLoader >> Static::Simple >> StackTrace >> Prototype >> Email >> /; >> > > Hi, > > try to configure Plugin::Email to use a smtp server: > > __PACKAGE__->config->{email} = [ > 'SMTP', > 'smtp.myhost.com', > username => $USERNAME, > password => $PASSWORD, > ]; > > replace smtp.myhost.com with localhost, username and password > can be blank if your smtp server doesnt require auth for local > users. > > Furthermore you might want to set the attribute of send_email to > Private and call the method with $self->send_email($c, $params); > Otherwise this method can be called by a request to this > controller via a browser. > > Viele Grüße > > Moritz > ___ > 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/ *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien Handelsgericht Wien, FN 79340b *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* Notice: This e-mail contains information that is confidential and may be privileged. If you are not the intended recipient, please notify the sender and then delete this e-mail immediately. *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"* ___ 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] Hello, Deployment of Catalyst apps in a shared web hosting account without shell
Hello, I'm new to Catalyst, and would like to know if it is possible to deploy Catalyst apps in a shared web hosting account without shell? For what I've read, it seems not possible but I need to be sure. Thank you, Ari Constancio ___ 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] Hello, Deployment of Catalyst apps in a shared web hosting account without shell
On Thu, Oct 02, 2008 at 06:10:01PM +0100, Ari Constancio wrote: > Hello, > > I'm new to Catalyst, and would like to know if it is possible to > deploy Catalyst apps in a shared web hosting account without shell? > For what I've read, it seems not possible but I need to be sure. > > Thank you, > Ari Constancio > Assuming that your shared host has all of the required modules installed you can use the .cgi script found in the /scripts directory of your catalyst application. -- Lee Aylward signature.asc Description: Digital signature ___ 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] Hello, Deployment of Catalyst apps in a shared web hosting account without shell
It may be theoretically possible, but probably would prove impossibly frustrating. You can be reasonably certain that your host will not have all the Perl modules that you need and you will need to do a local install. 2008/10/3 Lee Aylward <[EMAIL PROTECTED]> > On Thu, Oct 02, 2008 at 06:10:01PM +0100, Ari Constancio wrote: > > Hello, > > > > I'm new to Catalyst, and would like to know if it is possible to > > deploy Catalyst apps in a shared web hosting account without shell? > > For what I've read, it seems not possible but I need to be sure. > > > > Thank you, > > Ari Constancio > > > > Assuming that your shared host has all of the required modules installed > you can use the .cgi script found in the /scripts directory of your > catalyst application. > > -- > Lee Aylward > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAkjlS84ACgkQornF2yojAAcTNACaApYHRpBX22ps6ghzaZ+FQrCe > NFEAoI7Qw8dBl1EmRG9Fmk7kzN8XfIgK > =CytI > -END PGP SIGNATURE- > > ___ > 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/ > > -- Regards, Martin ([EMAIL PROTECTED]) IT: http://methodsupport.com Personal: http://thereisnoend.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/