Re: [Catalyst] regexes and auto actions

2006-11-13 Thread Carl Johnstone

Hi,

I posted this a couple of weeks ago.

The site is split into many areas (and subareas) defined by URL path, the 
same types of content appear in each area of the site.


There's stuff that needs setting up that's specific to the area of the 
site, this appears around the main part of the content of the page and 
includes stuff like latest articles for that area.


At the same time the actual appearance of the article within the template 
is always the same, so we don't want to duplicate all the code every time 
we're dealing with a standard article.


So we have:

/news/
/news/story/1
/news/comments/1
/sport/
/sport/story/2
/sport/comments/2
/sport/football/
/sport/football/story/3
/sport/football/comments/3

etc

Our plan was to use auto actions in the various Controllers to define all 
the area specific stuff. Then use a Regex action in another Controller to 
actually generate the article.


In practice however only /article/auto and /auto get called.

Any other solution we've come up with has involved adding a story action 
in every Controller. This will be a drag as for each new type of content 
we'll need to add an action in every controller.



After some experimentation we've done it by subclassing.

We've defined a article controller with a story/(\d+) LocalRegex action, 
"comments" action and a default index action. Then used this as the base 
class for our news, sport, football, etc Controllers. We can then override 
where the index page is a different style etc.


Carl


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] How to use FastCGI engien?

2006-11-13 Thread Mao DengFeng-e13751



Hi,
I have installed 
mod_fastcgi into apache and I got this information:


Apache/2.0.55 (Unix) PHP/4.4.2 mod_fastcgi/2.4.2 Server at 
apflex.pcs.mot.com Port 80

 
In httpd.conf,  I put below changes into  it
 
##Configuration for Catalyst#  
FastCgiIpcDir /tmp  FastCgiServer 
/home/user/Myapp/script/myapp_fastcgi.pl  -processes 5  Alias 
/myapp   /home/user/Myapp/script/myapp_fastcgi.pl/   Options 
+ExecCGI   
 When I start apache server, I got below 
error message :
 
FastCGI: can't start server 
"/home/user/Myapp/script/Myapp_fastcgi.pl" (pid 3437), chdir() failed: 
Permission denied[Mon Nov 13 18:27:00 2006] [warn] FastCGI: server 
"/home/user/Myapp/script/myapp_fastcgi.pl" started (pid 3437)[Mon Nov 13 
18:27:00 2006] [warn] FastCGI: server "/home/user/Myapp/script/myapp_fastcgi.pl" 
(pid 3437) terminated by calling exit with status '255'
I have made the permission of  all 
content in  "Myapp" folder  to  777.
Anyone can give me some advice for these 
errors?
 
Another question.
I try to  start catalyst in standeralone server 
mode using FastCGI enigen  (FCGI and FCGI::ProcManager  have been 
installed). the command like this:
 ./script/ezx_flex_fastcgi.pl -l :3000 -n 
1
 
The catalyst seems launched sucessful
 
[info] EZX_Flex powered by Catalyst 5.7005FastCGI: 
manager (pid 3455): initializedFastCGI: server (pid 3456): 
initializedFastCGI: manager (pid 3455): server (pid 3456) 
startedFastCGI: server (pid 3457): initializedFastCGI: manager (pid 
3455): server (pid 3457) startedFastCGI: manager (pid 3455): server (pid 
3458) startedFastCGI: server (pid 3459): initializedFastCGI: manager 
(pid 3455): server (pid 3459) startedFastCGI: server (pid 3460): 
initializedFastCGI: manager (pid 3455): server (pid 3460) 
startedFastCGI: server (pid 3458): initialized
 
 
I try to visit http://hostname:3000, I got "the page can't be 
displayed". But when I launched the catalyst without FastCGI engine. I can visit 
this link correctly. 
How can I visit  the the 
application when FastCGI engine was used? 
 
Thanks
Mao 
Dengfeng 
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Catalyst::View::TT

2006-11-13 Thread Ivan Wills
Hi,

I'm using Catalyst::View::TT to display my pages. I'm having trouble
removing excess blank lines appearing at the top of my files.

I realise this is not normally a problem but I am playing with mixing
SVG and XHTML (with content-type=text/xhtml) but Firefox considers the
extra blank lines to be an error when in XML rendering mode if they
appear before the  deceleration.

Any one know how to remove those blank lines?

Thanks
Ivan

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Chisel Wright
On Mon, Nov 13, 2006 at 08:46:27PM +1000, Ivan Wills wrote:
> Any one know how to remove those blank lines?

I think you are talking about the "[%- ... %] syntax; search for %- in
Template::Manual::Syntax

Chisel
-- 
Chisel Wright
e: [EMAIL PROTECTED]
w: http://www.herlpacker.co.uk/

  What do we want? Less premature ejaculation!
  When do we want it? ... aaw heck :(

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Ash Berlin

Ivan Wills wrote:

Hi,

I'm using Catalyst::View::TT to display my pages. I'm having trouble
removing excess blank lines appearing at the top of my files.

I realise this is not normally a problem but I am playing with mixing
SVG and XHTML (with content-type=text/xhtml) but Firefox considers the
extra blank lines to be an error when in XML rendering mode if they
appear before the  deceleration.

Any one know how to remove those blank lines?

Thanks
Ivan

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/



[% END -%]

also known as RTFM ;)

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Krzysztof Krzyżaniak
Ash Berlin <[EMAIL PROTECTED]> writes:

> Ivan Wills wrote:
>> Hi,
>>
>> I'm using Catalyst::View::TT to display my pages. I'm having trouble
>> removing excess blank lines appearing at the top of my files.
>>
>> I realise this is not normally a problem but I am playing with mixing
>> SVG and XHTML (with content-type=text/xhtml) but Firefox considers the
>> extra blank lines to be an error when in XML rendering mode if they
>> appear before the  deceleration.
>>
>> Any one know how to remove those blank lines?
>
> [% END -%]
>
> also known as RTFM ;)

or options of template toolkit

   PRE_CHOMP, POST_CHOMP
   Remove whitespace before/after directives (default: 0/0).

  eloy
-- 
[EMAIL PROTECTED]

   jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] How to use FastCGI engien?

2006-11-13 Thread Jon
Check that the user that runs apache (prob. apache or httpd, depending
on your linux distribution) has filesystem read/write/execute access to
the /etc/httpd/logs/fastcgi directory or the equivalent for your setup.

Also check that your apache user has filesystem execute permission
in /home/user/Myapp/script.

HTH.

-- 

Jon

On Mon, 2006-11-13 at 18:44 +0800, Mao DengFeng-e13751 wrote:
> Hi,
> I have installed mod_fastcgi into apache and I got this information:
> 
> Apache/2.0.55 (Unix) PHP/4.4.2 mod_fastcgi/2.4.2 Server at
> apflex.pcs.mot.com Port 80
> 
>  
> In httpd.conf,  I put below changes into  it
>  
> #
> #Configuration for Catalyst
> #
>   FastCgiIpcDir /tmp
>   FastCgiServer /home/user/Myapp/script/myapp_fastcgi.pl  -processes 5
>   Alias /myapp   /home/user/Myapp/script/myapp_fastcgi.pl/
> 
>Options +ExecCGI
>
>  When I start apache server, I got below error message :
>  
> FastCGI: can't start server
> "/home/user/Myapp/script/Myapp_fastcgi.pl" (pid 3437), chdir() failed:
> Permission denied
> [Mon Nov 13 18:27:00 2006] [warn] FastCGI: server
> "/home/user/Myapp/script/myapp_fastcgi.pl" started (pid 3437)
> [Mon Nov 13 18:27:00 2006] [warn] FastCGI: server
> "/home/user/Myapp/script/myapp_fastcgi.pl" (pid 3437) terminated by
> calling exit with status '255'
> 
> I have made the permission of  all content in  "Myapp" folder  to
> 777.
> Anyone can give me some advice for these errors?
>  
> Another question.
> I try to  start catalyst in standeralone server mode using FastCGI
> enigen  (FCGI and FCGI::ProcManager  have been installed). the command
> like this:
>  ./script/ezx_flex_fastcgi.pl -l :3000 -n 1
>  
> The catalyst seems launched sucessful
>  
> [info] EZX_Flex powered by Catalyst 5.7005
> FastCGI: manager (pid 3455): initialized
> FastCGI: server (pid 3456): initialized
> FastCGI: manager (pid 3455): server (pid 3456) started
> FastCGI: server (pid 3457): initialized
> FastCGI: manager (pid 3455): server (pid 3457) started
> FastCGI: manager (pid 3455): server (pid 3458) started
> FastCGI: server (pid 3459): initialized
> FastCGI: manager (pid 3455): server (pid 3459) started
> FastCGI: server (pid 3460): initialized
> FastCGI: manager (pid 3455): server (pid 3460) started
> FastCGI: server (pid 3458): initialized
>  
>  
> I try to visit http://hostname:3000, I got "the page can't be
> displayed". But when I launched the catalyst without FastCGI engine. I
> can visit this link correctly. 
> How can I visit  the the application when FastCGI engine was used? 
>  
> Thanks
> Mao Dengfeng 
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] How to use FastCGI engien?

2006-11-13 Thread Sébastien Wagener
On Mon, 2006-11-13 at 21:55 +1030, Jon wrote:
> Check that the user that runs apache (prob. apache or httpd, depending
> on your linux distribution) has filesystem read/write/execute access to
> the /etc/httpd/logs/fastcgi directory or the equivalent for your setup.
> 
> Also check that your apache user has filesystem execute permission
> in /home/user/Myapp/script.
> 
Also make sure your session files and any other existing files,
like /tmp/myapp.socket are writable to the apache user. 
If you try to execute myapp_server.pl as sudo apache (or equivalent),
you should be able to identify the problem quickly.

SW


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Authentication - Tutorial

2006-11-13 Thread Nathan Gray
On Sat, Nov 11, 2006 at 06:55:52PM +, Anthony Gardner wrote:
> So, to cut a long story short .. my .yml still isn't working at all.

Do you have the 'ConfigLoader' plugin listed in your 'use Catalyst'
line?

> I've made sure everything is indented with spaces, too.
> 
> Here it is  
> 
> ---
> name: BookShop
> authentication:
>   dbic:
> user_class: BookShopDB::User
> user_field: username
> password_field: password

The yaml looks okay to me, but you can check it with something like
this:

  perl -MYAML -e 'YAML::LoadFile("your_filename_here.yml") ? print "ok\n" : 
print "failed\n"'

-kolibrie


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Environment variable confliction.

2006-11-13 Thread Yiyi Hu

export PATH_INFO=
export SCRIPT_NAME=

If you ever exported these 2 env.
You'll get the problem while running the test server. ./script/project_server

The problem would be like, the browser reached maximum redirection count.
Thus, failed to open the page.
eg.
You used Static::Simple.
and there is a file named index.html in root directory.
And configured default redirect http://localhost:1234/ to
http://local:1234/index.html
When there is a request to http://localhost:1234/
It would become a redirect loop.

Sorry for my poor English.
I ever wish to send this to mailing list.
But yet I'm busy, and forgetful.

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Jonathan Rockway
Ivan Wills wrote:
> I realise this is not normally a problem but I am playing with mixing
> SVG and XHTML (with content-type=text/xhtml) but Firefox considers the
> extra blank lines to be an error when in XML rendering mode if they
> appear before the  deceleration.

If you're mixing XHTML and SVG, don't send it as text/xhtml.  Use
application/xhtml+xml.  XML is not text.

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Announce. Catalyst::Plugin::I18N::DBIC 0.01

2006-11-13 Thread Ian Docherty
Since I got no response to my request a few weeks ago about I18N data 
from a database I wrote my own :)


This module has just been released to CPAN.

It builds on Catalyst::Plugin::I18N and inherits all methods from that 
module. In addition it provides a 'load_lexicon' method that loads data 
from a database. (Which reminds me, the POD does not explain the 
database structure ;(  I see version 0.02 coming on...)


The 'Lexicon' data in the en.pm, fr.pm, de.pm etc. files is empty. It is 
loaded from the database using the 'load_lexicon' method.


You can also divide up your application into 'paths', for example 
'header', 'footer', 'navigation', 'user/edit', 'user/login' etc. which 
means you only need to load a subset of the translation data as required 
by your templates.


Regards
Ian C. Docherty (ICD)


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Announce. Catalyst::Plugin::I18N::DBIC 0.01

2006-11-13 Thread John Napiorkowski
-- Ian Docherty <[EMAIL PROTECTED]> wrote:

> Since I got no response to my request a few weeks
> ago about I18N data 
> from a database I wrote my own :)
> 
> This module has just been released to CPAN.
> 
> It builds on Catalyst::Plugin::I18N and inherits all
> methods from that 
> module. In addition it provides a 'load_lexicon'
> method that loads data 
> from a database. (Which reminds me, the POD does not
> explain the 
> database structure ;(  I see version 0.02 coming
> on...)
> 
> The 'Lexicon' data in the en.pm, fr.pm, de.pm etc.
> files is empty. It is 
> loaded from the database using the 'load_lexicon'
> method.
> 
> You can also divide up your application into
> 'paths', for example 
> 'header', 'footer', 'navigation', 'user/edit',
> 'user/login' etc. which 
> means you only need to load a subset of the
> translation data as required 
> by your templates.
> 
> Regards
> Ian C. Docherty (ICD)

I'll be using it in this application I wrote that
stores the TT templates in a database.  Now I can move
everything to the DB interface for my users.  Thanks!
--john

> 
> 
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo:
> http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
>
http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
> 



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Authentication - Tutorial

2006-11-13 Thread Anthony Gardner
Cool! cheers, mate. Not sure what's happening as the LoadFile told me I was missing a newline at the end of the file. BUT, it seems to be an eclipse problem as I thought I did add a newline but the newline was atomatically indented. Anyway, sorted now.-AntsNathan Gray <[EMAIL PROTECTED]> wrote: On Sat, Nov 11, 2006 at 06:55:52PM +, Anthony Gardner wrote:> So, to cut a long story short .. my .yml still isn't working at all.Do you have the 'ConfigLoader' plugin listed in your 'use Catalyst'line?> I've made sure everything is indented with spaces, too.> > Here it is  > > ---> name: BookShop> authentication:>   dbic:> user_class: BookShopDB::User> user_field: username>
 password_field: passwordThe yaml looks okay to me, but you can check it with something likethis:  perl -MYAML -e 'YAML::LoadFile("your_filename_here.yml") ? print "ok\n" : print "failed\n"'-kolibrie___List: Catalyst@lists.rawmode.orgListinfo: http://lists.rawmode.org/mailman/listinfo/catalystSearchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/Dev site: http://dev.catalyst.perl.org/ Send instant messages to your online friends http://uk.messenger.yahoo.com ___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Announce. Catalyst::Plugin::I18N::DBIC 0.01

2006-11-13 Thread Ian Docherty

John
I finally worked out what I was doing wrong in my upload to CPAN.

It should be on the mirrors soon, but if you want a version prior to that
or information on how to use it send me a personal email.

Regards
Ian

John Napiorkowski wrote:

I'll be using it in this application I wrote that
stores the TT templates in a database.  Now I can move
everything to the DB interface for my users.  Thanks!
--john

  



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Ivan Wills

Krzysztof Krzyżaniak wrote:

Ash Berlin <[EMAIL PROTECTED]> writes:

  

Ivan Wills wrote:


Hi,

I'm using Catalyst::View::TT to display my pages. I'm having trouble
removing excess blank lines appearing at the top of my files.

I realise this is not normally a problem but I am playing with mixing
SVG and XHTML (with content-type=text/xhtml) but Firefox considers the
extra blank lines to be an error when in XML rendering mode if they
appear before the  deceleration.

Any one know how to remove those blank lines?
  

[% END -%]

also known as RTFM ;)



or options of template toolkit

   PRE_CHOMP, POST_CHOMP
   Remove whitespace before/after directives (default: 0/0).

  eloy
  
The PRE_CHOMP option looks like the options that I want but where do I 
apply those settings?


Ivan Wills

PS I do use [%- and -%] they make no difference, it is something that 
Catalyst is adding the blank lines as the same templates processed 
directly by Template Toolkit do not produce the initial blank  lines.


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Catalyst::View::TT

2006-11-13 Thread Bill Moseley
On Tue, Nov 14, 2006 at 09:38:04AM +1000, Ivan Wills wrote:
> PS I do use [%- and -%] they make no difference, it is something that 
> Catalyst is adding the blank lines as the same templates processed 
> directly by Template Toolkit do not produce the initial blank  lines.

If you don't want to track down every template that might be
introducing leading blank lines, then how about removing the leading
space from $c->res->body for that specific $c->res->conent_type in an
end action?

-- 
Bill Moseley
[EMAIL PROTECTED]


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Re: Catalyst Digest, Vol 21, Issue 25

2006-11-13 Thread Jarrell Dunson
Out of the Office reply: I'll be out of the office until Tuesday, Nov
14th.  If an emergency, please contact the helpdesk, x2200
  Thanks, 
 Jarrell


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] How to use FastCGI engien?

2006-11-13 Thread Mao DengFeng-e13751
Hi 
Thanks  to all for the help
This problem has been solved.
The rootcause is the We should make  the permission of
"/home/user/Myapp" folder to writeable and excuteable for Apache user.
I only have changed the permission  of  the content under
"/home/user/Myapp" before. But I didn't change the permission of the
folder "/home/user/Myapp".

Thanks
Mao Dengfeng



-Original Message-
From: Jon [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 13, 2006 7:25 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] How to use FastCGI engien?

Check that the user that runs apache (prob. apache or httpd, depending
on your linux distribution) has filesystem read/write/execute access to
the /etc/httpd/logs/fastcgi directory or the equivalent for your setup.

Also check that your apache user has filesystem execute permission in
/home/user/Myapp/script.

HTH.

-- 

Jon

On Mon, 2006-11-13 at 18:44 +0800, Mao DengFeng-e13751 wrote:
> Hi,
> I have installed mod_fastcgi into apache and I got this information:
> 
> Apache/2.0.55 (Unix) PHP/4.4.2 mod_fastcgi/2.4.2 Server at 
> apflex.pcs.mot.com Port 80
> 
>  
> In httpd.conf,  I put below changes into  it
>  
> #
> #Configuration for Catalyst
> #
>   FastCgiIpcDir /tmp
>   FastCgiServer /home/user/Myapp/script/myapp_fastcgi.pl  -processes 5
>   Alias /myapp   /home/user/Myapp/script/myapp_fastcgi.pl/
> 
>Options +ExecCGI
>
>  When I start apache server, I got below error message :
>  
> FastCGI: can't start server
> "/home/user/Myapp/script/Myapp_fastcgi.pl" (pid 3437), chdir() failed:
> Permission denied
> [Mon Nov 13 18:27:00 2006] [warn] FastCGI: server 
> "/home/user/Myapp/script/myapp_fastcgi.pl" started (pid 3437) [Mon Nov

> 13 18:27:00 2006] [warn] FastCGI: server 
> "/home/user/Myapp/script/myapp_fastcgi.pl" (pid 3437) terminated by 
> calling exit with status '255'
> 
> I have made the permission of  all content in  "Myapp" folder  to 777.
> Anyone can give me some advice for these errors?
>  
> Another question.
> I try to  start catalyst in standeralone server mode using FastCGI 
> enigen  (FCGI and FCGI::ProcManager  have been installed). the command

> like this:
>  ./script/ezx_flex_fastcgi.pl -l :3000 -n 1
>  
> The catalyst seems launched sucessful
>  
> [info] EZX_Flex powered by Catalyst 5.7005
> FastCGI: manager (pid 3455): initialized
> FastCGI: server (pid 3456): initialized
> FastCGI: manager (pid 3455): server (pid 3456) started
> FastCGI: server (pid 3457): initialized
> FastCGI: manager (pid 3455): server (pid 3457) started
> FastCGI: manager (pid 3455): server (pid 3458) started
> FastCGI: server (pid 3459): initialized
> FastCGI: manager (pid 3455): server (pid 3459) started
> FastCGI: server (pid 3460): initialized
> FastCGI: manager (pid 3455): server (pid 3460) started
> FastCGI: server (pid 3458): initialized
>  
>  
> I try to visit http://hostname:3000, I got "the page can't be 
> displayed". But when I launched the catalyst without FastCGI engine. I

> can visit this link correctly.
> How can I visit  the the application when FastCGI engine was used? 
>  
> Thanks
> Mao Dengfeng
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: 
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] log infor using FastCGI enigine in Apache

2006-11-13 Thread Mao DengFeng-e13751



Hi,
I have made catalyst 
is runing in apache with FastCGI engine.
It's really very 
fast:)
But when I check the 
log information form apache log file. The log from FastCGI  is not so 
beautiful  like the log from catalyst standalone server.  The log is 
hard to check. The log like this:
==
[Tue Nov 14 10:35:17 2006] [error] [client 
10.193.100.73] FastCGI: server "/home/user/Myapp/script/ezx_flex_fastcgi.pl" 
stderr: 
.+---., 
referer: http://localhost/Myapp/wiki/a[Tue 
Nov 14 10:35:17 2006] [error] [client 10.193.100.73] FastCGI: server 
"/home/user/Myapp/script/ezx_flex_fastcgi.pl" stderr: | 
Action 
| Time  |, referer: http://localhost/Myapp/wiki/a
 
==
 
How to configure and 
make the log from FastCGI in apache like  from standalone server 
mode
 
Thanks
Mao 
Dengfeng

 
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] log infor using FastCGI enigine in Apache

2006-11-13 Thread Jon
I found Catalyst::Log::Log4perl a good alternative.  Unfortunately not
compatible with Catalyst::Plugin::Dumper though.

-- 

Jon


On Tue, 2006-11-14 at 10:57 +0800, Mao DengFeng-e13751 wrote:
> Hi,
> I have made catalyst is runing in apache with FastCGI engine.
> It's really very fast:)
> But when I check the log information form apache log file. The log
> from FastCGI  is not so beautiful  like the log from catalyst
> standalone server.  The log is hard to check. The log like this:
> ==
> 
> [Tue Nov 14 10:35:17 2006] [error] [client 10.193.100.73] FastCGI:
> server "/home/user/Myapp/script/ezx_flex_fastcgi.pl"
> stderr: 
> .+---.,
>  referer: http://localhost/Myapp/wiki/a
> [Tue Nov 14 10:35:17 2006] [error] [client 10.193.100.73] FastCGI:
> server "/home/user/Myapp/script/ezx_flex_fastcgi.pl" stderr: | Action
> | Time  |, referer: http://localhost/Myapp/wiki/a
>  
> ==
>  
> How to configure and make the log from FastCGI in apache like  from
> standalone server mode
>  
> Thanks
> Mao Dengfeng
> 
> 
>  
> ___
> List: Catalyst@lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Announce. Catalyst::Plugin::I18N::DBIC 0.01

2006-11-13 Thread John Beppu

This looks promising.  Thanks for coding this.  :-)

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/