<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.lefebvrepe.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>LefebvrePe.com ツ Pierre-Emmanuel Lefebvre - Tag - CentOS</title>
  <link>http://blog.lefebvrepe.com/</link>
  <atom:link href="http://blog.lefebvrepe.com/feed/tag/CentOS/rss2" rel="self" type="application/rss+xml"/>
  <description>Blog de Pierre-Emmanuel Lefebvre</description>
  <language>fr</language>
  <pubDate>Thu, 18 Sep 2008 08:26:28 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>CentOS: Installer Lighttpd et Php</title>
    <link>http://blog.lefebvrepe.com/post/2008/06/23/CentOS%3A-Installer-Lighttpd-et-Php</link>
    <guid isPermaLink="false">urn:md5:bf086d69d97d372dcb3c7e60650e8d5b</guid>
    <pubDate>Mon, 23 Jun 2008 14:33:00 +0200</pubDate>
    <dc:creator>pm2036</dc:creator>
        <category>CentOS</category><category>lighttpd</category><category>linux</category><category>php</category>    
    <description>    &lt;p&gt;&lt;img src=&quot;http://blog.lefebvrepe.com/public/illustrations/.lighttpd_t.jpg&quot; alt=&quot;lighttpd.gif&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; title=&quot;lighttpd.gif, juin 2008&quot; /&gt;
Pour installer &lt;a href=&quot;http://www.lighttpd.net/&quot;&gt;Lighttpd&lt;/a&gt; et &lt;a href=&quot;http://fr.php.net&quot;&gt;PHP&lt;/a&gt;, sur une CentOS, rien de très compliqué:&lt;/p&gt;


&lt;p&gt;Tout d'abord, il faut &lt;a href=&quot;http://blog.lefebvrepe.com/post/2008/05/08/Centos-5%3A-Activer-lauto-completion&quot;&gt;activer les dépots RPMForge&lt;/a&gt;, vous trouverez la procédure dans &lt;a href=&quot;http://blog.lefebvrepe.com/post/2008/05/08/Centos-5%3A-Activer-lauto-completion&quot;&gt;ce billet.&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;On lance en root:&lt;br /&gt;
&lt;code&gt;yum install lighttpd lighttpd-fastcgi php&lt;/code&gt;&lt;/p&gt;


&lt;p&gt;Puis on édites le fichier &lt;em&gt;/etc/lighttpd/lighttpd.conf&lt;/em&gt;&lt;br /&gt;
On décommente la ligne contenant &lt;em&gt;mod_fastcgi&lt;/em&gt;&lt;br /&gt;
Puis on s'assure que le code suivant est bien décommenté:&lt;br /&gt;&lt;/p&gt;

&lt;pre&gt;
fastcgi.server  = ( &amp;quot;.php&amp;quot; =&amp;gt;
    ( &amp;quot;localhost&amp;quot; =&amp;gt;
        (
            &amp;quot;socket&amp;quot; =&amp;gt; &amp;quot;/var/run/lighttpd/php-fastcgi.socket&amp;quot;,
            &amp;quot;bin-path&amp;quot; =&amp;gt; &amp;quot;/usr/bin/php-cgi&amp;quot;
        )
    )
)
&lt;/pre&gt;


&lt;p&gt;On continue en créant l'emplacement du socket:&lt;br /&gt;
&lt;code&gt;mkdir /var/run/lighttpd&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;touch /var/run/lighttpd/php-fastcgi.socket&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;chown -R lighttpd:lighttpd /var/run/lighttpd/&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Et on termine en éditant &amp;quot;/etc/php.ini&amp;quot; et en ajoutant:&lt;br /&gt;
&lt;code&gt;cgi.fix_pathinfo = 1&lt;/code&gt;&lt;/p&gt;


&lt;p&gt;On pense à activer lighttpd à chaque démarrage:
&lt;code&gt;chkconfig lighttpd on&lt;/code&gt;&lt;/p&gt;


&lt;p&gt;Voilà, c'est terminé, vous pouvez désormais placer vos pages dans &lt;em&gt;/srv/www/lighttpd/&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.lefebvrepe.com/post/2008/06/23/CentOS%3A-Installer-Lighttpd-et-Php#comment-form</comments>
      <wfw:comment>http://blog.lefebvrepe.com/post/2008/06/23/CentOS%3A-Installer-Lighttpd-et-Php#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.lefebvrepe.com/feed/rss2/comments/257</wfw:commentRss>
      </item>
    
  <item>
    <title>CentOS: Installer &amp; configurer NTP pour synchroniser l'heure système</title>
    <link>http://blog.lefebvrepe.com/post/2008/05/12/CentOS%3A-Installer-configurer-ntp</link>
    <guid isPermaLink="false">urn:md5:2fe006f0a7e7e4938645ec889126bc24</guid>
    <pubDate>Mon, 12 May 2008 17:07:00 +0200</pubDate>
    <dc:creator>pm2036</dc:creator>
        <category>CentOS</category><category>linux</category>    
    <description>    &lt;h3&gt;Procédure:&lt;br /&gt;&lt;/h3&gt;

&lt;p&gt;Commençons par l'installer:&lt;br /&gt;&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# yum install ntp&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Puis on active le service (pour qu'il se lance à chaque démarrage):&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# chkconfig ntp on&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;On lance manuellement une mise à jour de l'heure:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# ntpdate fr.pool.ntp.org&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Et finalement, on lance le daemon, pour qu'il s'exécute en continu&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# service ntp start&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
    
    
    
          <comments>http://blog.lefebvrepe.com/post/2008/05/12/CentOS%3A-Installer-configurer-ntp#comment-form</comments>
      <wfw:comment>http://blog.lefebvrepe.com/post/2008/05/12/CentOS%3A-Installer-configurer-ntp#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.lefebvrepe.com/feed/rss2/comments/237</wfw:commentRss>
      </item>
    
  <item>
    <title>Centos 5: Activer l'auto-complétion</title>
    <link>http://blog.lefebvrepe.com/post/2008/05/08/Centos-5%3A-Activer-lauto-completion</link>
    <guid isPermaLink="false">urn:md5:0b2c24f2efbe1204a3d29c928de6c43c</guid>
    <pubDate>Thu, 08 May 2008 19:46:00 +0200</pubDate>
    <dc:creator>pm2036</dc:creator>
        <category>CentOS</category><category>linux</category>    
    <description>&lt;p&gt;Après avoir présenté &lt;a href=&quot;http://blog.lefebvrepe.com/post/2007/12/04/Activer-lauto-completion-dans-votre-console&quot;&gt;l'auto complétion sur une Mandriva&lt;/a&gt;, voici désormais la procédure pour faire la même chose sur une &lt;a href=&quot;http://fr.centos.org&quot; hreflang=&quot;fr&quot;&gt;CentOS&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://blog.lefebvrepe.com/public/illustrations/centos1.png&quot; alt=&quot;centos&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;    &lt;h3&gt;Procédure:&lt;br /&gt;&lt;/h3&gt;

&lt;p&gt;Commençons par l'installer:&lt;br /&gt;&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# yum install bash-completion&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Et ça ne fonctionne pas, en effet, bash-completion n'est pas dans les dépots par défaut de CentOS 5.
Il faut installer les dépots RPMForge
Et c'est parti:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# yum install yum-priorities&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Vérifier que yum-priorities est activé en vérifiant que /etc/yum/pluginconf.d/priorities.conf contient bien les lignes suivantes:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[main]&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;enabled=1&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Editer les fichiers .repo dans /etc/yum.repos.d/ et réglez les priorités en ajoutant la ligne:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;priority=N&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;dans les fichiers .repo. Où N est un entier compris entre 1 et 99.&lt;/p&gt;


&lt;p&gt;Les paramètres recommandés sont:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[base], [addons], [updates], [extras] ... priority=1 &lt;/code&gt;&lt;br /&gt;
&lt;code&gt;[centosplus],[contrib] ... priority=2&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;Les dépots tiers tels que rpmforge ... priority=N  (où N&amp;gt; 10 basé sur vos préférences)&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;On ajoute désormais les dépots.
Si votre système est en i386&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;ou en x86_64&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;On ajoute ensuite la clé d&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;On installe le paquet préalablement téléchargé:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;On teste l'installation:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# yum check-update&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Vous devriez voir les lignes suivantes:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# Loading &amp;quot;priorities&amp;quot; plugin&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;...&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;76 packages excluded due to repository priority protections&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;Et voilà, on peut désormais installer bash-completion:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# yum install bash-completion&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;Ensuite, autorisons le système à l'utiliser&lt;br /&gt;&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;code&gt;[root@localhost ~]# source /etc/bash_completion&lt;/code&gt;&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;Et voilà, tout roule &lt;img src=&quot;/themes/default/smilies/smile.png&quot; alt=&quot;:-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;





&lt;p&gt;La procédure d'ajout du dépot rpmforge provient du &lt;a href=&quot;http://wiki.centos.org/Repositories/RPMForge&quot; hreflang=&quot;en&quot;&gt;wiki anglais de CentOS&lt;/a&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.lefebvrepe.com/post/2008/05/08/Centos-5%3A-Activer-lauto-completion#comment-form</comments>
      <wfw:comment>http://blog.lefebvrepe.com/post/2008/05/08/Centos-5%3A-Activer-lauto-completion#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.lefebvrepe.com/feed/rss2/comments/232</wfw:commentRss>
      </item>
    
</channel>
</rss>