FCGI Perl

Johnny fox Ucklenberg lists at ruby-forum.com
Sat Oct 17 19:49:47 MSD 2009


>What is unclear on
>http://wiki.nginx.org/NginxSimpleCGI

Of course, i read wiki. Its unclear how to modify nginx.conf


I need to run wakaba(imageboard script) on my nginx which was written in 
perl.

I've got nginx/0.7.62:
  >--prefix=/nginx
  >--sbin-path=/nginx/nginx
  >--conf-path=/nginx/conf/nginx.conf
  >--error-log-path=/nginx/log/nginx-error.log
  >--pid-path=/nginx/nginx.pid
  >--lock-path=/nginx/nginx.lock
  >--user=nobody   >--group=nobody

  >--with-http_ssl_module
  >--with-http_realip_module
  >--with-http_flv_module
  >--with-http_gzip_static_module
  >--with-http_random_index_module
  >--with-http_secure_link_module
  >--with-http_stub_status_module

  >--with-perl_modules_path=/nginx/mod
  >--with-perl=/usr/bin/perl

  >--http-log-path=/nginx/log/nginx-access.log

  >--http-client-body-temp-path=/nginx/tmp/client
  >--http-proxy-temp-path=/nginx/tmp/proxy
  >--http-fastcgi-temp-path=/nginx/tmp/fastcgi

  >--without-mail_pop3_module
  >--without-mail_imap_module
  >--without-mail_smtp_module

  >--with-cpu-opt=pentium4
  >--with-md5-asm
  >--with-sha1-asm
  >--with-zlib-asm=pentiumpro

Also i installed fcgi, perl, perl-fcgi and procmanager packages. I 
generated syscall.pm:

  >cd /usr/include
  >h2pm -r -l syscall.h

cgiwrap-fcgi.pl is located in /nginx (do i need to modify 
it(path-to-socket, line 35)?)

>[root at theycrawl ~]# /nginx/cgiwrap-fcgi.pl 
>FastCGI: manager (pid 5284): initialized
>FastCGI: manager (pid 5284): server (pid 5285) started
>FastCGI: server (pid 5285): initialized
>FastCGI: server (pid 5286): initialized
>FastCGI: manager (pid 5284): server (pid 5286) started
>FastCGI: manager (pid 5284): server (pid 5287) started
>FastCGI: server (pid 5287): initialized
>FastCGI: server (pid 5288): initialized
>FastCGI: manager (pid 5284): server (pid 5288) started
>FastCGI: server (pid 5289): initialized
>FastCGI: manager (pid 5284): server (pid 5289) started

What i need to add to nginx.conf?
In which order i must run nginx and other stuff?

PS also i've got gnosek-fcgiwrap, may be its better to use it?
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list