[Top][All Lists]

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

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

From: Aryasheel Pradhan
Subject: Re: [Fastcgipp-users] Configuring nginx and fastcgicpp ( fastcgi c++)
Date: Thu, 27 Jan 2011 17:31:57 +0530

Thank you,  it works perfectly.

Testing will now begin !!!.

Thanks and Regards

On Thu, Jan 27, 2011 at 3:19 PM, Volker Schreiner <address@hidden> wrote:
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;. 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 -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, 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:


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.


> 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
> Configure / make /make install (passed )
> built example
> Changed configuration of nginx to accesses the cgi files

location ~ \.fcgi$ {
        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
 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

Mit freundlichen Grüßen

Volker Schreiner

reply via email to

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