<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://trucatux.under-globe.net/index.php/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/">
<channel>
  <title>Truc à Tux - Installation</title>
  <link>http://trucatux.under-globe.net/index.php/</link>
  <description>trucs et astuces glanés ça et là sur linux</description>
  <language>fr</language>
  <pubDate>Fri, 23 Nov 2007 14:18:05 +0100</pubDate>
  <copyright>under-globe.org</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>awstats</title>
    <link>http://trucatux.under-globe.net/index.php/post/2007/04/12/awstats</link>
    <guid isPermaLink="false">urn:md5:cc3922d0df743823a1143ab4d79859ae</guid>
    <pubDate>Thu, 12 Apr 2007 14:58:00 +0200</pubDate>
    <dc:creator>Phracktale</dc:creator>
        <category>Installation</category>
            
    <description>    &lt;strong&gt;Installation de awstats:&lt;/strong&gt;&lt;br /&gt;sudo apt-get install awstats&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configuration de awstats:&lt;/strong&gt;&lt;br /&gt;sudo cp /etc/awstats/awstats.conf /etc/awstats/awstats.underglobe.conf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Incorporer les anciens logs gzippés:&lt;/strong&gt;&lt;br /&gt;&lt;pre class=&quot;bash&quot;&gt;&lt;a href=&quot;http://pwet.fr/man/linux/commandes/cd&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;cd&lt;/span&gt;&lt;/a&gt; /var/log/apache2/&lt;br /&gt;&lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;for&lt;/span&gt; f &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;in&lt;/span&gt; *.log.gz ; &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;do&lt;/span&gt;&lt;br /&gt;  &lt;a href=&quot;http://pwet.fr/man/linux/commandes/echo&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&amp;quot;$f&amp;quot;&lt;/span&gt;&lt;br /&gt;  &lt;a href=&quot;http://pwet.fr/man/linux/commandes/gzip&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;gzip&lt;/span&gt;&lt;/a&gt; -d &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&amp;quot;$f&amp;quot;&lt;/span&gt;&lt;br /&gt;  /usr/lib/cgi-bin/awstats.pl -&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;config=&lt;/span&gt;underglobe -update -&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;LogFile=&lt;/span&gt;$&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;f/.gz/&lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;  &lt;a href=&quot;http://pwet.fr/man/linux/commandes/gzip&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;gzip&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&amp;quot;${f/.gz/}&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;done&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Paramétrer logrotate:&lt;/strong&gt;&lt;br /&gt;&lt;pre class=&quot;bash&quot;&gt;/var/log/apache2/*.log &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;        daily&lt;br /&gt;        size &lt;span style=&quot;color: rgb(204, 102, 204);&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# si la taille des logs est &amp;gt; 1octet&lt;/span&gt;&lt;br /&gt;        rotate &lt;span style=&quot;color: rgb(204, 102, 204);&quot;&gt;365&lt;/span&gt; &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# garder une année de log&lt;/span&gt;&lt;br /&gt;        compress &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# compresser les vieux logs&lt;/span&gt;&lt;br /&gt;        dateext &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# les vieux logs seront datés&lt;/span&gt;&lt;br /&gt;        create &lt;span style=&quot;color: rgb(204, 102, 204);&quot;&gt;640&lt;/span&gt; root root &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# créer un nouveau fichier avec ces droits&lt;/span&gt;&lt;br /&gt;        sharedscripts &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# lancer prerotate et postrotate une seule fois pour tous les logs&lt;/span&gt;&lt;br /&gt;        olddir /var/log/apache2/old/&lt;br /&gt;        prerotate&lt;br /&gt;                &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# Avant de changer de fichier&lt;/span&gt;&lt;br /&gt;               /usr/lib/cgi-bin/awstats.pl -&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;config=&lt;/span&gt;underglobe -update&lt;br /&gt;        endscript&lt;br /&gt;        postrotate&lt;br /&gt;          &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# après le changment de fichier, on redémarre apache&lt;/span&gt;&lt;br /&gt;           &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt; -f /var/run/&lt;a href=&quot;http://pwet.fr/man/linux/administration_systeme/apache&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;apache&lt;/span&gt;&lt;/a&gt;.pid &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;; &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;then&lt;/span&gt; \&lt;br /&gt;             &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;[&lt;/span&gt; -x /usr/sbin/invoke-rc.d &lt;span style=&quot;color: rgb(102, 204, 102);&quot;&gt;]&lt;/span&gt;; &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;then&lt;/span&gt; \&lt;br /&gt;                invoke-rc.d &lt;a href=&quot;http://pwet.fr/man/linux/administration_systeme/apache&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;apache&lt;/span&gt;&lt;/a&gt; reload &amp;gt; /dev/null; \&lt;br /&gt;             &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;else&lt;/span&gt; \&lt;br /&gt;                /etc/init.d/&lt;a href=&quot;http://pwet.fr/man/linux/administration_systeme/apache&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;apache&lt;/span&gt;&lt;/a&gt; reload &amp;gt; /dev/null; \&lt;br /&gt;             &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;fi&lt;/span&gt;; \&lt;br /&gt;           &lt;span style=&quot;color: rgb(177, 177, 0);&quot;&gt;fi&lt;/span&gt;;&lt;br /&gt;          &lt;span style=&quot;color: rgb(128, 128, 128); font-style: italic;&quot;&gt;# ajustement des permissions des fichiers de AWStats&lt;/span&gt;&lt;br /&gt;           &lt;a href=&quot;http://pwet.fr/man/linux/commandes/chown&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 102);&quot;&gt;chown&lt;/span&gt;&lt;/a&gt; -R www-data:www-data /var/lib/awstats/&lt;br /&gt;        endscript&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;paramétrage apache:&lt;/strong&gt;&lt;br /&gt;&lt;pre class=&quot;apache&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Alias&lt;/span&gt; /awstatsclasses &lt;span style=&quot;color: rgb(127, 0, 127);&quot;&gt;&amp;quot;/usr/share/awstats/classes/&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Alias&lt;/span&gt; /awstatscss &lt;span style=&quot;color: rgb(127, 0, 127);&quot;&gt;&amp;quot;/usr/share/awstats/css/&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(173, 173, 173); font-style: italic;&quot;&gt;# mêmes paramètres que dans awstats.*.conf&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Alias&lt;/span&gt; /stats /usr/lib/cgi-bin/&lt;br /&gt; &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Alias&lt;/span&gt; /icon &lt;span style=&quot;color: rgb(127, 0, 127);&quot;&gt;&amp;quot;/usr/share/awstats/icon/&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;lt;Directory /usr/lib/cgi-bin/&amp;gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;DirectoryIndex&lt;/span&gt; awstats.pl&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;UseCanonicalName&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;off&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;AuthName&lt;/span&gt; &lt;span style=&quot;color: rgb(127, 0, 127);&quot;&gt;&amp;quot;Statistiques de pwet.fr&amp;quot;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;AuthType&lt;/span&gt; Basic&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Require&lt;/span&gt; valid-&lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;user&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;AuthUserFile&lt;/span&gt; /home/underglobe/.passwdstats&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Options&lt;/span&gt; +ExecCGI&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;AllowOverride&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;None&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Order&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;allow&lt;/span&gt;,&lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;deny&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;Allow&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 127);&quot;&gt;all&lt;/span&gt;&lt;br /&gt;&amp;lt;/Directory&amp;gt;&lt;br /&gt;&lt;br /&gt;Source : &lt;a hreflang=&quot;fr&quot; href=&quot;http://pwet.fr/blog/statistiques_web_avec_awstats_sous_ubuntu_en_mode_cgi&quot;&gt;PWET&lt;/a&gt;&lt;/pre&gt;</description>
    
    
    
          <comments>http://trucatux.under-globe.net/index.php/post/2007/04/12/awstats#comment-form</comments>
      <wfw:comment>http://trucatux.under-globe.net/index.php/post/2007/04/12/awstats#comment-form</wfw:comment>
      <wfw:commentRss>http://trucatux.under-globe.net/index.php/feed/rss2/comments/336</wfw:commentRss>
      </item>
    
  <item>
    <title>Librairie PDO</title>
    <link>http://trucatux.under-globe.net/index.php/post/2007/04/07/Librairie-PDO</link>
    <guid isPermaLink="false">urn:md5:8640cbda9c2f5a3038b115d1af3804c7</guid>
    <pubDate>Sat, 07 Apr 2007 14:56:00 +0200</pubDate>
    <dc:creator>Phracktale</dc:creator>
        <category>Installation</category>
        <category>PDO</category><category>pear</category><category>PHP</category><category>PHP 5</category>    
    <description>    PDO est une librairie fournissant une couche d'abstraction aux bases de données fonctionnant avec php5&lt;br /&gt;
&lt;a hreflang=&quot;fr&quot; href=&quot;http://www.phpteam.net/index.php?option=com_content&amp;amp;task=view&amp;amp;id=71&amp;amp;Itemid=1&quot;&gt;&lt;br /&gt;Présentation par PHPTEAM&lt;/a&gt;&lt;br /&gt;
&lt;p&gt;&lt;a hreflang=&quot;fr&quot; href=&quot;http://blognote-info.com/index.php?2006/05/13/414-installation-de-pdo-pour-php5&quot;&gt;Installation de PDO sur UBUNTU DAPPER&lt;/a&gt; Fonctionne egalement sous edgy&lt;/p&gt;</description>
    
    
    
          <comments>http://trucatux.under-globe.net/index.php/post/2007/04/07/Librairie-PDO#comment-form</comments>
      <wfw:comment>http://trucatux.under-globe.net/index.php/post/2007/04/07/Librairie-PDO#comment-form</wfw:comment>
      <wfw:commentRss>http://trucatux.under-globe.net/index.php/feed/rss2/comments/316</wfw:commentRss>
      </item>
    
</channel>
</rss>