Monkey HTTP, an other compatible lightweight web server Raspberry Pi

Among the Web servers available on the Raspberry, found Apache, Nginx, Lighttpd and another may be less known : Monkey HTTP. Announced as high-performance, It has everything to please our Raspberry Pi !

Linux-Webserver-Monkey-HTTP-Daemon-in-Version-0.10.0-erschienen_medium

In a previous article, I had talked about d’a comparison of the main servers. Nginx was coming out of the lot but a short head on Monkey HTTP. For those who want to try it, Here's how.

The approach is quite well explained on official site, so here is the French version.

  1. Monkey HTTP is not available on the official repository but since the introduction of the Bill. So you must add this repository to your distribution. Edit the file //etc/apt/sources.list and add the following line :
    deb http://packages.monkey-project.com/primates_pi primates_pi hand
  2. Updating the system. It will include the new repository to install our web server :
    apt-get update
  3. You can now install Monkey and Add plugins :
    apt - get install monkey             \
                      Monkey-liana       \
                      Monkey-logger      \
                      Monkey-dirlisting  \
                      Monkey-cgi         \
                      Monkey-fastcgi     \
                      Monkey-mandril     \
                      Monkey-cheetah     \
                      Monkey-auth

    During the installation, the system will tell you that you install unauthenticated packets, you will therefore have to answer Y which is not the default option.

  4. You have your web server installed and running :
    root@raspberrypi:~ # ps - ef | grep monk www-data 30114     1  0 17:27 ?        00:00:00 /usr/sbin/monkey--daemon root     30125 29900  0 17:33 PTS/3    00:00:00 grep monk root@raspberrypi:~#
  5. By going to the port 2001 your raspberry, Here is the Nice welcome message :
    Monkey_HTTP_Daemon
  6. To add SSL support, You can run the following installation :
    apt - get install monkey-polarssl libpolarssl0
  7. Now, This is to configure the server for our use. It is in the directory /etc/monkey and in the file Monkey.conf. You can set the General parameters of the server as the listening port, the timeouts, etc.
    The default site is located in /etc/monkey/sites/default. It is in this file that you can configure the root of your site.
  8. If you need a PHP support, You can use the php5-fpm wrapper. Once installed via apt - get, You must configure Monkey to manage the PHP file.
    In the FASTCGI_SERVER block you add the lines :
    Serverpath/var/run/php5-fpm.sock MaxConnections 1

    In the FASTCGI_LOCATION block you add the lines :

    Locationname fcgitest ServerNames test_server1 KeepAlive On Match. * . php

    Finally it is necessary to activate the FastCGI plugin. Edit the file /etc/monkey/plugins.load. Enable the line :

    Load /usr/lib/monkey/monkey-fastcgi.so

    You can now restart your service

    restart service monkey

Monkey HTTP site offers a comparison between Nginx and Monkey on the Raspberry. The result gives (Obviously ?) an advantage to Monkey then may be I will use it for the next articles …

You may also like...

  • adrennes

    Hello,
    I used the procedure you describe above. MONKEY installs and runs.
    I then wanted to install a few plugins, After having stopped MONKEY. No installs. Below what PI returns:
    “”
    Selecting previously deselected package monkey-logger.
    (Reading from the database… 81056 files and directories currently installed.)
    Unpacking of monkey-logger (from …/Monkey - logger_1.4.0 - 1_armhf.deb) . ..
    dpkg: error processing /var/cache/apt/archives/monkey-logger_1.4.0-1_armh f.deb (-unpack) :
    attempt to replace '/etc/monkey/plugins/logger/logger.conf '., which ap also belongs to the monkey package 1.5.5-1
    dpkg-deb : error : the subprocess paste killed by signal (Relay bri se (pipe))
    Errors were encountered during execution :
    /var/cache/apt/archives/monkey-logger_1.4.0-1_armhf.deb
    E: Sub-process/usr/bin/dpkg returned an error code (1)
    “”
    Can you help me please ?
    Thank you.
    adrennes

  • adrennes

    In fact, I understand now that the command “sudo apt - get install monkey ” also installs the following plugins:
    auth cgi cheetah dirlisting fastcgi logger mandril polarssl
    then just enable that one wants to in sudo nano /etc/monkey/plugins.load and in there dé-commentant the plugins selected. Then re - start monkey: “sudo service monkey restart” . In my case, Here restarts without bitching.
    The procedure of the authors of monkey explained well… to paths closely which is inaccurate (No file conf, for example): http://monkey-project.com/documentation/1.5/index.html
    It seems that the way to launch the php is to use CGI or Fastcgi.
    Question: someone knows - it the way to launch the index.py ?
    Thank you.
    adrennes

Handpicked links

disk Page Caching using disk: enhanced Database Caching 167/362 queries in 0.170 seconds using disk Served from: pihomeserver.fr @ 2017-10-03 04:07:05 by W3 Total Cache -->