[Catalyst] How to use FastCGI engien?

Mao DengFeng-e13751 e13751 at motorola.com
Mon Nov 13 10:44:48 GMT 2006


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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jules.scsys.co.uk/pipermail/catalyst/attachments/20061113/b245b5b6/attachment.htm


More information about the Catalyst mailing list