[Catalyst] How to use FastCGI engien?

Mao DengFeng-e13751 e13751 at motorola.com
Tue Nov 14 02:35:32 GMT 2006


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:jon+catalyst at youramigo.com] 
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/
> <Directory "/home/user/Myapp">
>        Options +ExecCGI
>    </Directory>
>  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 at 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 at 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/



More information about the Catalyst mailing list