{"id":136,"date":"2011-07-23T13:14:28","date_gmt":"2011-07-23T13:14:28","guid":{"rendered":"http:\/\/www.extradrm.com\/?p=136"},"modified":"2013-05-22T14:26:08","modified_gmt":"2013-05-22T12:26:08","slug":"installation-koha-arabe-sous-debian-squeeze","status":"publish","type":"post","link":"https:\/\/www.extradrm.com\/?p=136","title":{"rendered":"Installation koha arabe Debian Squeeze"},"content":{"rendered":"<p>Nous supposons que nous avons une installation stable de Debian Squeeze &#8230;<\/p>\n<p>Nous allons installer apache2 et Mysql puis cr\u00e9er un user koha avec les droits full sudo.<\/p>\n<h3>Mise \u00e0 jour des sources d&#8217;apt<\/h3>\n<p>Afin d&#8217;installer les paquets les plus r\u00e9cents,<strong> il est n\u00e9cessaire de mettre \u00e0 jour <\/strong>la liste des paquets de l&#8217;outil <strong><em>apt<\/em><\/strong><\/p>\n<p>. Identifiez vous en <strong>root<\/strong> dans un terminal \u00e0 l&#8217;aide de la commande <tt>su<\/tt>. Tapez ensuite <tt><\/tt><\/p>\n<pre>apt-get update<\/pre>\n<p>Une fois le t\u00e9l\u00e9chargement termin\u00e9, vous disposez de la liste des paquets les plus r\u00e9cents.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Installation du serveur Apache\u00a02<\/strong><\/h3>\n<p>Il s&#8217;agit du serveur Web seul. Sans documentation, sans langage cot\u00e9 serveur, sans base de donn\u00e9es.<\/p>\n<pre>apt-get install <a href=\"http:\/\/packages.debian.org\/stable\/web\/apache2\">apache2<\/a><\/pre>\n<p>Vous pouvez v\u00e9rifier que le serveur fonctionne en tapant <kbd>http:\/\/127.0.0.1\/<\/kbd> dans votre navigateur favori.<\/p>\n<h3><strong>Installation de la documentation d&#8217;Apache\u00a02<\/strong><\/h3>\n<p>Cette documentation est visible depuis un dossier virtuel du serveur.<\/p>\n<pre>apt-get install <a href=\"http:\/\/packages.debian.org\/stable\/doc\/apache2-doc\">apache2-doc<\/a><\/pre>\n<p>Cette documentation est visible en tapant <kbd>http:\/\/127.0.0.1\/manual\/<\/kbd> dans un navigateur apr\u00e8s avoir red\u00e9marr\u00e9 le serveur \u00e0 l&#8217;aide de la commande <tt>\/etc\/init.d\/apache2 restart<\/tt>.<\/p>\n<h3><strong>Installation d&#8217;un serveur MySQL<\/strong><\/h3>\n<p>La c\u00e9l\u00e8bre base de donn\u00e9es gratuite tr\u00e8s performante. La version\u00a04.1 g\u00e8re les requ\u00eates imbriqu\u00e9es, alors pourquoi s&#8217;en priver\u00a0?<\/p>\n<pre>apt-get install <a href=\"http:\/\/packages.debian.org\/squeeze\/mysql-server\">mysql-server-5.1<\/a><\/pre>\n<p>Votre base de donn\u00e9es est op\u00e9rationnelle, il faut maintenant d\u00e9finir un mot de passe pour le super utilisateur <strong>root<\/strong> afin d&#8217;\u00e9viter tout probl\u00e8me de s\u00e9curit\u00e9.<\/p>\n<p>Dans le terminal tapez <tt>mysql\u00a0-u root<\/tt> vous \u00eates alors directement connect\u00e9 en root sur le serveur MySQL. La premi\u00e8re chose \u00e0 faire est de cr\u00e9er un mot de passe.<\/p>\n<pre>mysql&gt; USE mysql; mysql&gt; UPDATE user -&gt; SET password = PASSWORD('motdepasse')<\/pre>\n<pre>-&gt; WHERE user = 'root';<\/pre>\n<pre>mysql&gt; flush privileges;<\/pre>\n<p>D\u00e9connectez vous avec le commande <tt>exit;<\/tt> puis reconnectez vous <tt>mysql\u00a0-u\u00a0root\u00a0-p<\/tt>, MySQL vous demande alors votre mot de passe.<\/p>\n<h3><strong>Installation de phpMyAdmin<\/strong><\/h3>\n<p>Cet outil d\u00e9velopp\u00e9 en PHP vous sera tr\u00e8s utile pour administrer et g\u00e9rer vos bases de donn\u00e9es.<\/p>\n<pre>apt-get install <a href=\"http:\/\/packages.debian.org\/stable\/web\/phpmyadmin\">phpmyadmin<\/a><\/pre>\n<p>Ensuite vous aurez acc\u00e8s \u00e0 phpMyAdmin en tapant dans la barre d&#8217;adresse <kbd>http:\/\/127.0.0.1\/phpmyadmin\/<\/kbd> apr\u00e8s avoir red\u00e9marr\u00e9 le serveur Apache.<br \/>\n<tt>\/etc\/init.d\/apache2 restart<\/tt><br \/>\nConnectez vous en tant que <strong>root<\/strong>.<\/p>\n<p>Avec l&#8217; utilisateur koha proc\u00e9dez aux \u00e9tapes suivantes :<br \/>\n<!--more--><\/p>\n<div dir=\"ltr\">\n<div>\n<pre>su - koha<\/pre>\n<\/div>\n<\/div>\n<h3>Software Dependencies<\/h3>\n<p>Update the apt sources to include &#8220;Indexdata&#8221;<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>sudo nano \/etc\/apt\/sources.list<\/pre>\n<\/div>\n<\/div>\n<p>add the lines:<\/p>\n<div dir=\"ltr\">\n<div>\n<pre># Index Data\r\ndeb http:\/\/ftp.indexdata.dk\/debian squeeze main\r\ndeb-src http:\/\/ftp.indexdata.dk\/debian squeeze main<\/pre>\n<\/div>\n<\/div>\n<p>The Index Data packages are signed with a key you can install as follows;<\/p>\n<p><strong>file is downloaded and installed to roots home directory for cleanliness in this example :<\/strong><\/p>\n<div dir=\"ltr\">\n<div>\n<pre>sudo wget http:\/\/ftp.indexdata.dk\/debian\/indexdata.asc --directory-prefix=\/root\r\nsudo apt-key add indexdata.asc<\/pre>\n<\/div>\n<\/div>\n<p>Installer les dependencies via <a title=\"Cr\u00e9ation Fichier Bash \/ bat sous linux\" href=\"http:\/\/www.extradrm.com\/?p=180\">un fichier bash<\/a> :<\/p>\n<pre>#!\/bin\/sh\r\nsudo aptitude update\r\nsudo aptitude install at\r\nsudo aptitude install apache2\r\nsudo aptitude install build-essential make daemon gcc gettext\r\nsudo aptitude install git-core git-email cvs\r\nsudo aptitude install idzebra-2.0 idzebra-2.0-common idzebra-2.0-doc idzebra-2.0-utils\r\nsudo aptitude install libalgorithm-checkdigits-perl libauthen-cas-client-perl libbarcode-code128-perl libbiblio-endnotestyle-perl\r\nsudo aptitude install libbusiness-isbn-data-perl libbusiness-isbn-perl libbusiness-issn-perl\r\nsudo aptitude install libcgi-session-perl libcgi-session-serialize-yaml-perl\r\nsudo aptitude install libclass-accessor-perl libclass-factory-util-perl\r\nsudo aptitude install libdata-ical-perl\r\nsudo aptitude install libdate-calc-perl libdate-ical-perl libdate-manip-perl\r\nsudo aptitude install libdatetime-format-mail-perl libdatetime-format-strptime-perl libdatetime-format-w3cdtf-perl libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl\r\nsudo aptitude install libdbd-mysql-perl libdbd-mysql-perl libdbd-sqlite2-perl libdbi-perl libdbi-perl\r\nsudo aptitude install libdigest-sha1-perl libdublincore-record-perl libmarc-crosswalk-dublincore-perl libemail-date-perl\r\nsudo aptitude install libgcrypt11 libgcrypt11-dev\r\nsudo aptitude install libgd-barcode-perl libgd-gd2-perl\r\nsudo aptitude install libhtml-scrubber-perl libhtml-tagset-perl libhtml-template-pro-perl libhttp-oai-perl\r\nsudo aptitude install libidzebra-2.0 libidzebra-2.0-dev libidzebra-2.0-mod-alvis libidzebra-2.0-mod-grs-marc libidzebra-2.0-mod-grs-regx libidzebra-2.0-mod-grs-xml libidzebra-2.0-mod-text libidzebra-2.0-modules\r\nsudo aptitude install libimage-magick-perl libgraphics-magick-perl libjson-perl\r\nsudo aptitude install liblingua-ispell-perl liblingua-stem-perl liblingua-stem-snowball-perl\r\nsudo aptitude install liblist-moreutils-perl\r\nsudo aptitude install liblocale-currency-format-perl liblocale-gettext-perl liblocale-po-perl\r\nsudo aptitude install libmail-sendmail-perl\r\nsudo aptitude install libmarc-charset-perl libmarc-record-perl libmarc-xml-perl\r\nsudo aptitude install libmemoize-memcached-perl libmime-lite-perl libmodule-install-perl libmysqlclient15-dev\r\nsudo aptitude install libnet-ldap-filterbuilder-perl libnet-ldap-perl libnet-server-perl libnet-z3950-zoom-perl\r\nsudo aptitude install libnumber-format-perl\r\nsudo aptitude install libpdf-api2-perl libpdf-api2-simple-perl libpdf-reuse-barcode-perl libpdf-reuse-perl libpdf-table-perl\r\nsudo aptitude install libpoe-perl libschedule-at-perl libsms-send-perl libstorable-perl libtemplate-perl\r\nsudo aptitude install libtext-charwidth-perl libtext-csv-encoded-perl libtext-csv-perl libtext-csv-xs-perl libtext-iconv-perl libtext-iconv-perl libtext-wrapi18n-perl\r\nsudo aptitude install libtimedate-perl libtime-duration-perl libtime-format-perl libtime-piece-perl\r\nsudo aptitude install libuniversal-require-perl libunix-syslog-perl liburi-perl\r\nsudo aptitude install libxml2 libxml2-dev libxml2-utils\r\nsudo aptitude install libxml-dom-perl libxml-dumper-perl libxml-libxml-perl libxml-libxslt-perl libxml-namespacesupport-perl libxml-parser-perl libxml-perl libxml-regexp-perl libxml-rss-perl libxml-sax-writer-perl libxml-simple-perl libxml-simple-perl libxml-xslt-perl\r\nsudo aptitude install libxslt1.1 libxslt1-dev\r\nsudo aptitude install libyaml-perl libyaml-syck-perl libyaml-syck-perl\r\nsudo aptitude install yaz yaz-doc libyaz libyaz-dev yaz-icu<\/pre>\n<p>&nbsp;<\/p>\n<p>Configure the cpan to enable installation of remaining perl module dependencies :<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>cpan<\/pre>\n<\/div>\n<\/div>\n<p>This will take you through cpan configuration script, accepting the defaults is fine. Once complete, run;<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>install Bundle::CPAN<\/pre>\n<\/div>\n<\/div>\n<p>This installs the latest CPAN module and lots of helper modules and is a good test that cpan is working correctly.<\/p>\n<p>Now install Perl Dependency Modules via CPAN: <a title=\"Install-dep-cpan\" href=\"http:\/\/wiki.koha-community.org\/wiki\/Install-dep-cpan\">example script<\/a><\/p>\n<h4>Installing and Configuring MySQL<\/h4>\n<p>Ensureing the correct character encoding for koha;<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>sudo cp \/usr\/share\/mysql\/config.medium.ini \/etc\/my.cnf<\/pre>\n<\/div>\n<\/div>\n<p>Then add the following lines to the my.cnf;<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>[client]\r\ndefault-character-set=utf8\r\n\r\n[mysql]\r\ndefault-character-set=utf8\r\n\r\n[mysqld]\r\ndefault-character-set=utf8\r\ndefault-collation=utf8_unicode_ci<\/pre>\n<\/div>\n<\/div>\n<p>Restart mysql for changes to take effect:<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>sudo \/etc\/init.d\/mysql restart<\/pre>\n<\/div>\n<\/div>\n<p>Creating the koha database (replace **** by your chosen kohaadmin password);<\/p>\n<div dir=\"ltr\">\n<div>\n<pre> mysql -uroot -p'******'\r\n mysql&gt; CREATE DATABASE koha CHARACTER SET utf8 COLLATE utf8_bin;\r\n mysql&gt; GRANT ALL ON koha.* TO 'kohaadmin'@'localhost' IDENTIFIED BY '****';\r\n mysql&gt; FLUSH PRIVILEGES;<\/pre>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h3>Koha<\/h3>\n<h4>Download<\/h4>\n<p>Change to Koha home directory and download Koha source via git.<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>cd \/home\/koha\r\ngit clone git:\/\/git.koha-community.org\/koha.git kohaclone<\/pre>\n<\/div>\n<\/div>\n<p>To keep things clean, create a new release tracking branch. (replace INSTALLNAME with whatever you want to call your install);<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>cd kohaclone\r\ngit checkout -b INSTALLNAME --track tag\/v3.04.00<\/pre>\n<\/div>\n<\/div>\n<h4>Installation<\/h4>\n<p>This follows the standard perl conventions. From within the kohaclone repository:<\/p>\n<div dir=\"ltr\">\n<div>\n<pre>perl Makefile.PL\r\nmake\r\nmake install<\/pre>\n<\/div>\n<\/div>\n<p>To run from the git clone select a <em>dev<\/em> install. See the Koha INSTALL documentation for more info.<\/p>\n<p>Fix any Dependancy issues mentioned after running Makefile.PL using instructions <a title=\"How to install missing Perl modules on Debian\" href=\"http:\/\/wiki.koha-community.org\/wiki\/How_to_install_missing_Perl_modules_on_Debian\">How_to_install_missing_Perl_modules_on_Debian<\/a> and re-run Makefile.PL until no issues are flagged.<\/p>\n<h4>Setting Environment Variable<\/h4>\n<p>Add environment variables to ~\/.bashrc (the actual values will differ depending on the answers to Makefile.PL) For a dev install:<\/p>\n<div dir=\"ltr\">\n<div>\n<pre> export KOHA_CONF=\/home\/koha\/koha-dev\/etc\/koha-conf.xml\r\n export PERL5LIB=\/home\/koha\/kohaclone<\/pre>\n<\/div>\n<\/div>\n<h4>Configuring Apache2<\/h4>\n<p>Link \/home\/koha\/koha-dev\/etc\/koha\/koha-httpd.conf to \/etc\/apache2\/sites-available\/koha<\/p>\n<div dir=\"ltr\">\n<div>\n<pre> sudo ln -s \/home\/koha\/koha-dev\/etc\/koha-httpd.conf \/etc\/apache2\/sites-available\/koha<\/pre>\n<\/div>\n<\/div>\n<p>Add &#8220;Listen&#8221; on port 8080 directive to \/etc\/apache2\/ports.conf;<\/p>\n<div dir=\"ltr\">\n<div>\n<pre> sudo nano \/etc\/apache2\/ports.conf<\/pre>\n<\/div>\n<\/div>\n<p>Configure final apache2 Settings, link the Koha site and Restart service to make settings stick;<\/p>\n<div dir=\"ltr\">\n<div>\n<pre> sudo a2enmod rewrite\r\n sudo a2ensite koha\r\n sudo apache2ctl restart<\/pre>\n<\/div>\n<\/div>\n<p>You should now find the Koha on-line setup page at YOURHOST:8080.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nous supposons que nous avons une installation stable de Debian Squeeze &#8230; Nous allons installer apache2 et Mysql puis cr\u00e9er un user koha avec les droits full sudo. Mise \u00e0 jour des sources d&#8217;apt&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":2843,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,34],"tags":[41,73,74],"youtube_video":null,"_links":{"self":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/136"}],"collection":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=136"}],"version-history":[{"count":0,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/posts\/136\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=\/wp\/v2\/media\/2843"}],"wp:attachment":[{"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.extradrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}