Actualités

Anyterm
clockEcrit par Poil | clock2008-01-17 13:43:01
Je profite du fait d'installer un service Anyterm sur la Debian Lenny d'un pote pour vous proposer ce tutoriel.
  • Prérequis
    $ aptitude install libncurses5-dev g++ libboost-thread1.33.1 libboost-thread-dev libboost-dev apache2-threaded-dev
    $ wget http://anyterm.org/download/anyterm-1.1.17.tbz2
    $ tar jxvf anyterm-1.1.17.tbz2
  • Compilation
    $ cd anyterm-1.1.17
    $ cd apachemod
    $ make
    $ make install
  • Configuration d'Apache 2
    • Module SSL
      $ mkdir /etc/apache2/ssl
      $ openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem
      $ a2enmod ssl
    • Module Anyterm
      $ cd /etc/apache2/mods-available
      $ echo LoadModule anyterm /usr/lib/apache2/modules/anyterm.so > Anyterm.load
      $ a2enmod Anyterm
    • VirtualHost SSL
      $ vi /etc/apache2/sites-available/ssl
      NameVirtualHost *:443

      ServerName localhost
      SSLEngine On
      SSLCertificateKeyFile ssl/apache.pem
      SSLCertificateFile ssl/apache.pem
      SSLProxyEngine On

      DocumentRoot /var/www/

      Options FollowSymLinks
      AllowOverride None

      Options Indexes FollowSymLinks MultiViews
      AllowOverride all
      Order allow,deny
      allow from all

      $ ln -s /etc/apache2/sites-available/ssl /etc/apache2/sites-enabled/ssl
  • Copie des fichiers nécessaire
    $ cd
    $ cd anyterm-1.1.17
    $ cp -r browser /var/www/anyterm
  • Mise en place .htaccess et .htasswd
    • .htaccess
    • $ vi /var/www/anyterm/.htaccess
      Ajouter la ligne :
      AuthUserFile /var/.htpasswd
      Après le bloc :
      AuthType Basic
      AuthName "Anyterm"
      Require valid-user
    • .htpasswd :
      Allez sur http://aspirine.org/htpasswd.html et générer un mot de passe en md5
      $ vi /var/.htpasswd
      Coller la ligne générée.
    • Rédémarrer Apache 2
      $ apache2ctl -S
      Si tout est OK
      $ apache2ctl restart

Commentaires

Aucun commentaire
Développé par Poil - Graphismes de DarkDaV - IcÃŽnes sous licence Creative Commons (famfam, nuovo ...)