Install on Raspberry Pi, the web server Pancake

Warning : This article has been automatically translated by Google Translate



Dans la longue liste des serveurs web, aujourd’hui un nouveau qui s’annonce ultra rapide, performant avec support PHP, HTTPS, Virtual Hosts, etc etc. J’ai nommé Pancake !

recette-9

Après quelques jours sans article pour cause de lifting général sur le site de ma femme, j’ai enfin (oui enfin ! 🙂 ) pu me remettre à trifouiller le Raspberry. Après avoir baissé les bras (temporairement) sur l’installation de Cloud9, je reviens avec Pancake.

Je voulais voir si ce serveur web pouvait tenir les promesses annoncées, y compris sur le site officiel de Rapsberry Pi.

  1. Mettre à jour le système
    apt-get update && apt-get -y upgrade
  2. Installer PHP
    apt-get install php5-cli
  3. Télécharger la dernière version. Faites le dans le futur répertoire d’installation.
    wget -O pancake.tar.gz http://pancakehttp.net/latest
  4. Décompresser l’archive
    tar zxvf pancake.tar.gz
  5. Changer le nom du répertoire pour plus de facilité
    mv Pancake-* Pancake
  6. Rendre exécutable le script de lancement
    chmod +x Pancake/sys/pancake.sh
  7. Pour activer le serveur au démarrage, rien de plus simple. C’est compris dedans ! Dans le répertoire d’installation, vous avez un fichier init. C’est lui qu’il va falloir copier dans /etc/init.d :
    cp Pancake/init /etc/init.d/pancake

    Le rendre exécutable

    chmod +x /etc/init.d/pancake

    L’activer au démarrage avec la séquence par défaut

    update-rc.d pancake defaults enable
  8. Et enfin déplacer le répertoire dans /usr/local.
     mv Pancake /usr/local

    Si vous n’installez pas Pancake dans ce répertoire les ennuis commencent. Chez moi j’ai voulu le laisser dans /root. Malgré un changement de configuration, de mise à jour des scripts, pas moyen d’avoir la page principale :
    404_Not_FoundAlors qu’en mettant le répertoire où il faut et en utilisant le script :

    service pancake start

    Et le résultat :
    Pancake_Default_Server_Page

  9. Maintenant le test en PHP avec le fichier suivant /usr/local/Pancake/vhost/default/test.php :
    <?php
    phpinfo();
    ?>

    phpinfo__

Pas besoin de wrapper, ça attaque direct ! Réponse éclaire, pas d’utilisation 100% élevée, donc ça à l’air vraiment bon. Les prochains tests se feront avec lui pour voir s’il va remplacer Nginx.

You may also like...

  • Michel

    Hello!

    Thanks much for this tutorial. My pancake with good air time! I turn right now with apache2 (nginx was working not for I don't know what application).. ! As do to replace apache2?

    Thanks in advance for your reply and thanks again for your blog (in my favorites for a long time).

    • Hello,
      You follow the tutorial to install Nginx, you do point your Nginx server where your pages, you installed if needed PHP support and it should broadly run. Après il y a toujours des coups de tournevis à donner 😉

  • Saperlipopette

    Hello and thank you (yet) for this tutorial.

    Expect you to make a comparison between nginx and pancake ? A little tutorial also to explain a bit is that you should know about this server ?

    Thank you.

    • Hello,
      I know that there are tools for made of the comparisons of this kind so if the urge takes me an of these 4 … 🙂

  • spart34

    Hi Chris,

    for your problem of moving in one directory other than/usr/local /., I found info on this site:
    http://raspberrypibeginner.wordpress.com/2013/04/05/hosting-a-website-on-the-rpi/
    However being in the taf and having not test, I do not guarantee…
    Hoping to help you as you help us with your tutorial…

  • Isador

    Hello,

    Thank you, excellent tutorial.
    Pancake is incredible, compared to Apache2 to load of Php on a Raspberry PI, It is the Festival ^^.

    Attention otherwise, do not do like me and attempt to remove the capital letter on file “Pancake”, otherwise the paths in the /etc/init.d/pancake file are more found, and the startup script no longer returns nothing … (either change all paths in the script as “spart34”).

    See if it is + performance Nginx. If it manages the virtualhosts by names, SSL also simply as Nginx, then with pleasure !

Handpicked links

disk Page Caching using disk: enhanced Database Caching 162/291 queries in 0.154 seconds using disk Served from: pihomeserver.fr @ 2017-06-05 02:16:50 by W3 Total Cache -->