fastcgipp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fastcgipp-users] Configuring nginx and fastcgicpp ( fastcgi c++)


From: Volker Schreiner
Subject: Re: [Fastcgipp-users] Configuring nginx and fastcgicpp ( fastcgi c++)
Date: Thu, 27 Jan 2011 10:49:14 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7

If i see it right you open a unixsocket in /tmp/user.socket by -s /tmp/user.socket in the spawn-fcgi call but
you try to connect a TCP/IP socket with fastcgi_pass   127.0.0.1:9000;. There are two possible ways
to solve the problem:

You try to connect the unixsocket by editing the nginx config.
fastcgi_pass    unix:/tmp/user.socket;

Spawn fcgi opens a TCP/IP socket.
spawn-fcgi.standalone -u root -g root -G www-data -a 127.0.0.1 -p 9000 -f /home/user/deployment/echo.fcgi

If you run the nginx on the same machine than the application, what is done by the 127.0.0.1, i recommend the
unixsocket because of the missing TCP/IP handling you should reach a better performance.

Best regards,

Volker Schreiner

Am 27.01.2011 10:23, schrieb Aryasheel Pradhan:
Hi

While configuring the nginx and fastcgicpp to create/test a website i met with some problem in configuration

Steps followed till now

OS : Ubuntu 64 bit running with g++ and boost library.

Steps

> Installed nginix from synaptic  (passed)
> changed default config to point to my home directory to show the html file (passed)
    > able to view basic html file.
> downloaded code from http://download.savannah.nongnu.org/releases/fastcgipp/fastcgi++-2.0beta-07b0d54d.tar.bz2
> Configure / make /make install (passed )
> built example
> Changed configuration of nginx to accesses the cgi files

location ~ \.fcgi$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  /$fastcgi_script_name;
        include fastcgi_params;
}

> stop start nginix (failed with the url http://localhost/echo.fcgi
> followed the article here

http://web.archiveorange.com/archive/v/5OCRnO5OA4DPk0qLAG4S
 Basically launch
 spawn-fcgi and did the same


  spawn-fcgi.standalone -u root -g root -G www-data -s /tmp/user.socket -f /home/user/deployment/echo.fcgi
  spawn-fcgi: child spawned successfully: PID: 2809

> Did the steps still no result.

Guys i know this is a forum for the development of the library but if we can put these configuration steps somewhere , lot of first timers like me will be able to configure and proceed in testing the library.

Thanks for help in advance.

Thanks and Regards
Aryasheel 




-- 
Mit freundlichen Grüßen

Volker Schreiner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]