just for the record: http://monkey-project.com/documentation/1.5/plugins/fastcgi.html
On Mon, Jan 7, 2013 at 4:52 PM, Sonny Karlsson <[email protected]> wrote: > On Mon, Jan 07, 2013 at 06:04:59PM +0100, Fnux wrote: >> Hi all and first of all, happy new year 2013. >> >> >> >> I just discovered Monkey and was wondering if the last summer code (Monkey >> v1.1.1) is now able to use PHP via a FastCGI interface (if possible when >> using the php5-fpm stack)? >> >> >> >> I do know that your Duda framework is made for native C codes, and that >> obviously C will be faster than any other language, but since Monkey seems >> to be very fast, it could be more than interesting if he could also host >> complete PHP web sites of products on resource limited systems. >> >> >> >> Thank you for the hint. >> >> >> >> All the best. >> > > Hi > > Here's a short howto for seting up monkey+php5-fpm. > > First you'll need the latest monkey release. > > $ wget http://monkey-project.com/releases/1.1/monkey-1.1.1.tar.gz > $ tar zxfv monkey-1.1.1.tar.gz > $ cd monkey-1.1.1 > > Build with the fastcgi plugin. > > $ ./configure --enable-plugins=fastcgi > $ make > > As the plugin is experimental you'll also need tell monkey to load it. > Uncomment the 'Load ../monkey-fastcgi.so' line in 'conf/plugins.load'. > > Add the following lines (not '"""') to 'conf/plugins/fastcgi/fastcgi.conf'. > > """ > [FASTCGI_SERVER] > ServerName php5-fpm # Name of this server > ServerPath /var/run/php5-fpm.sock # Socket > MaxConnections 5 # Concurrent connections, > # should be same as max > # php-fpm workers. > > [FASTCGI_LOCATION] > LocationName php5_location # Name of location > ServerNames php5-fpm1 # Space separated list of > # servers to use. > Match /*.php # Matches on file path. > """ > > This assumes that a php-fpm running on a UNIX socket, but a TCP socket > may be used instead with 'ServerAddr <server_addr>:<port>'. > > Then you'll only need to drop your *.php files into the 'htdocs' folder, > setup permissions and start monkey. > > $ bin/monkey > >> _______________________________________________ >> Monkey mailing list >> [email protected] >> http://lists.monkey-project.com/listinfo/monkey > > > -- > Sonny Karlsson > _______________________________________________ > Monkey mailing list > [email protected] > http://lists.monkey-project.com/listinfo/monkey -- Eduardo Silva http://edsiper.linuxchile.cl http://monkey-project.com _______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
