You are not logged in.

#1 2011-04-30 11:48:09

michalkx
Member
Registered: 2008-02-04
Posts: 5

How to run Monitorix CGI script using nginx and php-fpm?

Hi,

I am trying to set up Monitorix (it's a normal CGI script, written in Perl). My web server is nginx with php-fpm which is configured as shown in wiki (New method (As of PHP 5.3.3)). How do I configure php-fpm to work with perl cgi scripts?

Waiting for your response.

Offline

#2 2011-04-30 12:58:28

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: How to run Monitorix CGI script using nginx and php-fpm?

php-fpm only works with php. Check out the nginx wiki to see one way of running CGI scripts using a wrapper. http://wiki.nginx.org/SimpleCGI

Offline

#3 2011-04-30 13:22:38

michalkx
Member
Registered: 2008-02-04
Posts: 5

Re: How to run Monitorix CGI script using nginx and php-fpm?

Thanks. Which way you recommend more: the mentioned here http://wiki.nginx.org/SimpleCGI or http://library.linode.com/web-servers/n … arch-linux ?


Edit:

I used the latter method and it works flawlessly.

Last edited by michalkx (2011-04-30 14:16:06)

Offline

Board footer

Powered by FluxBB