<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Onestpasfatigue.com</title>
	<atom:link href="http://www.onestpasfatigue.com/mrslayers/feed" rel="self" type="application/rss+xml" />
	<link>http://www.onestpasfatigue.com/mrslayers</link>
	<description>Le blog de MrSlayers</description>
	<lastBuildDate>Tue, 21 May 2013 22:40:06 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MATE : Résoudre l&#8217;erreur &#171;&#160;mate-screenshot&#160;&#187; not found</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2012/12/17/mate-resoudre-lerreur-mate-screenshot-not-found.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2012/12/17/mate-resoudre-lerreur-mate-screenshot-not-found.html#comments</comments>
		<pubDate>Mon, 17 Dec 2012 17:14:54 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[Fedora 17]]></category>
		<category><![CDATA[MATE]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=390</guid>
		<description><![CDATA[Résoudre le problème du programme "mate-screenshot" qui n'existe pas.]]></description>
				<content:encoded><![CDATA[<p>Après une installation toute fraiche (voir mon <a title="Installer l’environnement MATE sous Fedora 17" href="http://www.onestpasfatigue.com/mrslayers/2012/12/17/installer-lenvironnement-mate-sous-fedora-17.html">article</a> à ce sujet) de MATE sous Fedora 17 j&rsquo;ai rencontré une erreur étrange :</p>
<p><em>Il y a eu une erreur lors de l&rsquo;exécution de <strong>mate-screenshot</strong> : L&rsquo;exécution du processus fils &laquo;&nbsp;<strong>mate-screenshot</strong>&nbsp;&raquo; a échoué (aucun fichier ou dossier de ce type)</em></p>
<p><a href="http://www.onestpasfatigue.com/mrslayers/2012/12/17/mate-resoudre-lerreur-mate-screenshot-not-found.html/mate-screenshot" rel="attachment wp-att-391"><img class="aligncenter size-full wp-image-391" alt="mate-screenshot" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2012/12/mate-screenshot.png" width="503" height="174" /></a></p>
<p>Cette erreur se produit lorsque vous appuyez sur la touche &laquo;&nbsp;<strong>Impr écran</strong>&nbsp;&raquo; de votre clavier. Pour résoudre ce probleme il vous suffit d&rsquo;installer le package &laquo;&nbsp;mate-utils&nbsp;&raquo; qui ne s&rsquo;installe pas par défaut (??!)</p>
<p>Pour faire cela lancez une fenêtre Terminal, connectez vous en &laquo;&nbsp;root&nbsp;&raquo;, puis tapez cette commande :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yum install mate-utils</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2012/12/17/mate-resoudre-lerreur-mate-screenshot-not-found.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installer l&#8217;environnement MATE sous Fedora 17</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2012/12/17/installer-lenvironnement-mate-sous-fedora-17.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2012/12/17/installer-lenvironnement-mate-sous-fedora-17.html#comments</comments>
		<pubDate>Mon, 17 Dec 2012 17:04:05 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[astuce]]></category>
		<category><![CDATA[dépot]]></category>
		<category><![CDATA[Fedora 17]]></category>
		<category><![CDATA[MATE]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=380</guid>
		<description><![CDATA[Comment installer en quelques minutes l'environnement de bureau MATE (fork de Gnome2) sous  Fedora 17]]></description>
				<content:encoded><![CDATA[<p>A cause du retard de la Fedora 18 (prévu pour le 8 janvier 2013) je me suis décidé à installer l&rsquo;environnement MATE sur ma Fedora 17. En effet, MATE (fork de Gnome2) sera intégré qu&rsquo;à partir de Fedora 18.</p>
<p>Pour installer MATE sous Fedora 17 faites comme ceci :<br />
- Ouvrez un terminal et passez en &laquo;&nbsp;root&nbsp;&raquo;<br />
- Installez ce package qui configurera les dépots de MATE</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yum install https://dl.dropbox.com/u/49862637/Mate-desktop/fedora_17/mate-desktop-fedora-updates/noarch/mate-desktop-release-17-2.fc17.noarch.rpm</div></div>
<p>Une fois le dépot installé, exécutez cette commande pour installer l&rsquo;environnement :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yum groupinstall MATE-Desktop</div></div>
<p>Sur mon poste, j&rsquo;ai eu besoin de télécharger 102 packages.</p>
<p>Une fois tout cela installé, déconnecté vous de votre session actuelle (pas besoin de redémarrer le système) et choisissez l&rsquo;environnement MATE avant de vous reconnecter (une liste doit être disponible à l’écran de connexion)</p>
<p><a href="http://www.onestpasfatigue.com/mrslayers/2012/12/17/installer-lenvironnement-mate-sous-fedora-17.html/mate-1-4" rel="attachment wp-att-382"><img class="aligncenter size-full wp-image-382" alt="MATE -1.4" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2012/12/MATE-1.4.png" width="428" height="258" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2012/12/17/installer-lenvironnement-mate-sous-fedora-17.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quand MySQL 5.5 ne veut pas démarrer sous Fedora 16</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2012/01/17/quand-mysql-5-5-ne-veut-pas-demarrer-sous-fedora-16.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2012/01/17/quand-mysql-5-5-ne-veut-pas-demarrer-sous-fedora-16.html#comments</comments>
		<pubDate>Tue, 17 Jan 2012 20:53:01 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[dépendances]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=350</guid>
		<description><![CDATA[Encore une erreur de dépendance, voila ce qui arrive quand on fait sa propre installation de logiciel et qu'on ne passe pas par les paquets de la distribution Linux !]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2012/01/mysql_logo.png" rel="lightbox[350]"><img class="aligncenter size-full wp-image-353" title="mysql_logo" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2012/01/mysql_logo.png" alt="" width="387" height="200" /></a></p>
<p>Après une installation toute fraiche de ma fedora 16 je ré-installe une version binaire de MySQL (parce que comme tout, j&rsquo;aime bien savoir où je mets les choses :p )</p>
<p>Pas de chance ! Voila que MySQL ne veut pas démarrer ! J&rsquo;obtiens ce message d&rsquo;erreur :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysqld: error <span style="color: #000000; font-weight: bold;">while</span> loading shared libraries: libaio.so.1: cannot open shared object file: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory</div></div>
<p>C&rsquo;est finalement très simple ! Il manque un package !<br />
Pour installer le package manquant, <strong>en root</strong> tapez ceci :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum install</span> libaio</div></div>
<p>Vous n&rsquo;avez plus qu&rsquo;ensuite à relancer votre serveur MySQL et tout ira bien !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2012/01/17/quand-mysql-5-5-ne-veut-pas-demarrer-sous-fedora-16.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sortie de TYPO3 4.6</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2011/10/25/sortie-de-typo3-4-6.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2011/10/25/sortie-de-typo3-4-6.html#comments</comments>
		<pubDate>Tue, 25 Oct 2011 14:24:26 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Typo3]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[release notes]]></category>
		<category><![CDATA[typo3 4.6]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=333</guid>
		<description><![CDATA[Une nouvelle version qui apporte toujours des nouveautés appréciées !]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/06/logoTYPO3.jpg" rel="lightbox[333]"><img class="aligncenter size-full wp-image-165" title="logoTYPO3" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/06/logoTYPO3.jpg" alt="" width="334" height="141" /></a></p>
<p>L&rsquo;équipe de développement vient d&rsquo;annoncer la sortie de la nouvelle version TYPO3, la version 4.6</p>
<p>Les innovations importantes sont :</p>
<ul>
<li>Un nouveau système de gestion des traductions.</li>
<li>Une nouvel élément de contenu pour la génération des formulaires (FrontEnd)</li>
<li>Une amélioration de la sécurité et des performances.</li>
</ul>
<div>Vous pouvez retrouver l&rsquo;annonce la <a title="TYPO 4.6 News" href="http://news.typo3.org/news/article/typo3-version-46/" target="_blank">news de l&rsquo;annonce</a> et la <a title="TYPO3 4.6 - Release notes" href="http://typo3.org/download/release-notes/typo3-46/" target="_blank">release notes</a> pour plus de détails.</div>
<div>Comme d&rsquo;habitude, vous pouvez télécharger cette nouvelle version depuis la<a title="TYPO3 4.6 download" href="http://typo3.org/download/packages/" target="_blank"> page de téléchargement</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2011/10/25/sortie-de-typo3-4-6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sortie de PHP 5.4.0 Beta1</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2011/09/27/sortie-de-php-5-4-0-beta1.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2011/09/27/sortie-de-php-5-4-0-beta1.html#comments</comments>
		<pubDate>Tue, 27 Sep 2011 08:29:28 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[autoconf]]></category>
		<category><![CDATA[beta1]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[pecl]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=326</guid>
		<description><![CDATA[Première version beta de PHP 5.4]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/09/php.jpg" rel="lightbox[326]"><img class="aligncenter size-full wp-image-318" title="php" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/09/php.jpg" alt="" width="550" height="200" /></a></p>
<p>La premiere version beta de PHP 5.4 vient tous juste d&rsquo;être publiée.</p>
<p>Cette version ne doit pas être encore utilisée sur un serveur de production. La liste des changements étant assez impressionnante, je vous renvois vers le <a href="http://www.php.net/releases/NEWS_5_4_0_beta1.txt" target="_blank">changelog</a> de cette beta1.</p>
<p>Si vous désirez tester cette version vous pouvez vous rendre sur la page de <a href="http://qa.php.net/" target="_blank">Quality Assurance</a>. Pour vous aider à compiler vous pouvez retrouver quelques articles sur mon blog. A noter que cette nouvelle version de PHP gère maintenant les dernieres version d&rsquo;autoconf. Ce qui vous évitera bien des soucis si vous ajoutez des extension PECL.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2011/09/27/sortie-de-php-5-4-0-beta1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>configure: error: Please reinstall the BZip2 distribution</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2011/09/22/configure-error-please-reinstall-the-bzip2-distribution.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2011/09/22/configure-error-please-reinstall-the-bzip2-distribution.html#comments</comments>
		<pubDate>Thu, 22 Sep 2011 14:06:01 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[bzip2]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[compression]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=316</guid>
		<description><![CDATA[Comment résoudre le problème avec BZip2 lors de la compilation de PHP]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/09/php.jpg" rel="lightbox[316]"><img class="aligncenter size-full wp-image-318" title="php" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/09/php.jpg" alt="" width="550" height="200" /></a></p>
<p>Si, lors de votre compilation, vous obtenez cette erreur :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">configure: error: Please reinstall the BZip2 distribution</div></div>
<p>Vérifiez que vous avez installé &laquo;&nbsp;bzip2&Prime;. Vous pouvez le vérifier en tapant la commande suivante :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">which</span> <span style="color: #c20cb9; font-weight: bold;">bzip2</span></div></div>
<p>S&rsquo;il est présent, ajoutez simplement le paquet suivant :</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">libbz2-devel</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2011/09/22/configure-error-please-reinstall-the-bzip2-distribution.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sortie d&#8217;Apache 2.2.20</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2011/08/31/sortie-dapache-v2-2-20.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2011/08/31/sortie-dapache-v2-2-20.html#comments</comments>
		<pubDate>Wed, 31 Aug 2011 09:08:48 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Serveur Web]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=306</guid>
		<description><![CDATA[Suite à l&#8217;exploitation (entendez par là, la création d&#8217;un script permettant d&#8217;exploiter la faille) d&#8217;une faille sur le serveur Apache connue depuis maintenant 4 ans, la fondation Apache vient tous juste de mettre à jour sa dernière version stable. Au moment où j&#8217;écris ces lignes, le site officiel n&#8217;annonce pas encore la disponibilité de cette version. [...]]]></description>
				<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" title="Apache HTTP Server" src="http://httpd.apache.org/images/httpd_logo_wide.gif" alt="" width="550" height="72" /></p>
<p>Suite à l&rsquo;exploitation (entendez par là, la création d&rsquo;un script permettant d&rsquo;exploiter la faille) d&rsquo;<a href="http://www.itespresso.fr/les-serveurs-apache-vulnerables-a-cause-dune-faille-deja-exploitee-45354.html" target="_blank">une faille sur le serveur Apache</a> connue depuis maintenant 4 ans, la fondation Apache vient tous juste de mettre à jour sa dernière version stable.</p>
<p>Au moment où j&rsquo;écris ces lignes, le <a title="The Apache HTTP Server" href="http://httpd.apache.org/" target="_blank">site officiel</a> n&rsquo;annonce pas encore la disponibilité de cette version. Cependant le correctif est annoncé dans le <a title="Changelog Apache 2.2.20" href="http://mir2.ovh.net/ftp.apache.org/dist//httpd/CHANGES_2.2.20" target="_blank">changelog</a></p>
<p>Vous pouvez néanmoins la télécharger en changeant le numéro de version dans l&rsquo;url de téléchargement.</p>
<p>Par exemple, depuis les serveurs OVH :  <a href="http://mir2.ovh.net/ftp.apache.org/dist//httpd/httpd-2.2.20.tar.bz2" target="_blank">Apache 2.2.20</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2011/08/31/sortie-dapache-v2-2-20.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment compresser une image disque VirtualBox (vdi)</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2011/07/12/comment-compresser-une-image-disque-virtualbox-vdi.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2011/07/12/comment-compresser-une-image-disque-virtualbox-vdi.html#comments</comments>
		<pubDate>Tue, 12 Jul 2011 15:08:02 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[defrag]]></category>
		<category><![CDATA[hôte]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[VBoxManage]]></category>
		<category><![CDATA[vdi]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=249</guid>
		<description><![CDATA[Ce billet vous explique comment récuperer de l'espace disque en compactant vos fichiers VDI.]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/07/virtualbox.jpg" rel="lightbox[249]"><img class="aligncenter size-full wp-image-272" title="virtualbox" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/07/virtualbox.jpg" alt="" width="550" height="344" /></a></p>
<p>Après une utilisation de votre machine virtuelle vous remarquez que votre fichier disque VDI de la machine virtuelle atteint des proportions hallucinantes en espace disque.</p>
<h2>Première manipulation à faire sur la machine émulée</h2>
<p><span class="Apple-style-span" style="font-size: 15px; font-weight: bold;">Machine émulée sous Windows</span></p>
<ul>
<li>Faire une défragmentation de votre système.</li>
</ul>
<h3>Machine émulée sous Linux</h3>
<ul>
<li>Vous aurez besoin de l&rsquo;utilitaire &laquo;&nbsp;zerofree&nbsp;&raquo; (soit dispo dans votre distribution linux, soit à télécharger et compiler via ces <a title="zerofree" href="http://intgat.tigress.co.uk/rmy/uml/zerofree-1.0.1.tgz">sources</a>)</li>
</ul>
<div>Ensuite faite comme ceci :</div>
<div>Regardez le nom du disque via la commande &laquo;&nbsp;df&nbsp;&raquo;</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">df</span></div></div>
<div>Ensuite le mieux est de passer en &laquo;&nbsp;single user mode&nbsp;&raquo;. Comme ca personne n&rsquo;accedera à votre machine et le minimum sera lancé sur la VM.</div>
<div>en root tapez :</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">telinit <span style="color: #000000;">1</span></div></div>
<div>Attendez un peu et identifiez vous en tant que &laquo;&nbsp;root&nbsp;&raquo;</div>
<div>De la executez la commande suivante :</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-o</span> remount,ro <span style="color: #660033;">-t</span> ext3 <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1 <span style="color: #000000; font-weight: bold;">/</span></div></div>
<div>Le /dev/sda1 dépendra de votre disque. Cette commande permet de remonter la particition principale en lecture seule.</div>
<div><strong>Remarque : Cet utilitaire ne gère que les partitions de type EXT2/3 donc ne faite pas la même erreur que moi en installant, par exemple, une SLES qui format en &laquo;&nbsp;reiserfs&nbsp;&raquo; par défaut&#8230;</strong></div>
<div>Ensuite nous allons remplir de 0 (zéro) l&rsquo;espace disque actuellement libre.</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">zerofree <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1</div></div>
<div>Ensuite il faut patienter et une fois fini, arretez le systeme.</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">halt</div></div>
<h2>Deuxième manipulation à faire sur l’hôte</h2>
<div>Pour terminer il faudra executer une commande du coté de votre hote. La commande se trouve dans les binaires de VirtualBox. Il se nomme VBoxManage.</div>
<div>
<div>Sous Windows il se trouve dans &laquo;&nbsp;C:\Program Files\Oracle\VirtualBox&nbsp;&raquo; (Windows XP). Sous linux, je pense qu&rsquo;il se trouve dans le PATH</div>
</div>
<div>En voici les paramètres :</div>
<div>
<ul>
<li>&laquo;&nbsp;modifyvdi&nbsp;&raquo;</li>
<li>le nom du fichier vdi</li>
<li>&laquo;&nbsp;compact&nbsp;&raquo;</li>
</ul>
<div>Exemple (a exécuter dans le dossier où se trouve le fichier vdi), sous Windows :</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvdi machine.vdi compact</div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2011/07/12/comment-compresser-une-image-disque-virtualbox-vdi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP, APC, Cherokee &amp; MySQL</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2011/06/24/php-apc-cherokee-mysql.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2011/06/24/php-apc-cherokee-mysql.html#comments</comments>
		<pubDate>Fri, 24 Jun 2011 20:29:04 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Cherokee]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Serveur Web]]></category>
		<category><![CDATA[compilation]]></category>
		<category><![CDATA[développement web]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[serveur]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=178</guid>
		<description><![CDATA[Ce billet décrit une marche à suivre pour l'installation d'un serveur Web avec PHP, MySQL et Cherokee]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/06/command-line.jpg" rel="lightbox[178]"><img class="aligncenter size-full wp-image-242" title="command-line" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/06/command-line.jpg" alt="" width="550" height="208" /></a></p>
<p>Ce billet me sert de mémento pour un déploiement de  : PHP (sous sa forme FPM), MySQL et Cherokee comme serveur Web.</p>
<p>L&rsquo;installation a été faite sur une Fedora 15 64bits fraichement installée (il manquait donc des dépendances). Cette distribution propose tous ces composants sous forme de RPM et quelques &laquo;&nbsp;yum install&nbsp;&raquo; pourraient vous suffire, cependant cela ne vous fera pas mettre la main dans le cambouis et vous n&rsquo;apprendrez pas comment tout cela fonctionne <img src='http://www.onestpasfatigue.com/mrslayers/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Le niveau de l&rsquo;article n&rsquo;est pas haut mais il faut connaitre les bases de la ligne de commande sous linux car je n&rsquo;explique pas toujours <img src='http://www.onestpasfatigue.com/mrslayers/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </p>
<p>Petite remarque concernant l&rsquo;installation de PHP : J&rsquo;y ajoute 2 extensions :</p>
<ul>
<li><a title="APC" href="http://fr.wikipedia.org/wiki/Alternative_PHP_Cache" target="_blank">APC</a> (compilée en tant qu&rsquo;extension externe)</li>
<li><a href="http://fr.wikipedia.org/wiki/Memcached" target="_blank">memcached</a> (compilée en static)</li>
</ul>
<p><span style="font-size: 20px; font-weight: bold;">Pré-requis</span></p>
<p>Nous allons tout d&rsquo;abord nous faire un dossier et y stocker tous les fichiers (codes sources) nécessaires. En date du billet, il s&rsquo;agit des dernières versions disponible.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> lamp<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> lamp</div></div>
<h3 dir="ltr">PHP</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>fr2.php.net<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>php-5.3.10.tar.bz2<span style="color: #000000; font-weight: bold;">/</span>from<span style="color: #000000; font-weight: bold;">/</span>this<span style="color: #000000; font-weight: bold;">/</span>mirror</div></div>
<h3 dir="ltr">APC</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>pecl.php.net<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>APC-3.1.9.tgz</div></div>
<h3 dir="ltr">Cherokee</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.cherokee-project.com<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.2</span><span style="color: #000000; font-weight: bold;">/</span>1.2.101<span style="color: #000000; font-weight: bold;">/</span>cherokee-1.2.101.tar.gz</div></div>
<div>
<h3>MySQL</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.mysql.com<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>Downloads<span style="color: #000000; font-weight: bold;">/</span>MySQL-<span style="color: #000000;">5.5</span><span style="color: #000000; font-weight: bold;">/</span>mysql-5.5.20-linux2.6-x86_64.tar.gz<span style="color: #000000; font-weight: bold;">/</span>from<span style="color: #000000; font-weight: bold;">/</span>http:<span style="color: #000000; font-weight: bold;">//</span>mirrors.ircam.fr<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span></div></div>
<h3 dir="ltr">PECL memcache</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>pecl.php.net<span style="color: #000000; font-weight: bold;">/</span>get<span style="color: #000000; font-weight: bold;">/</span>memcache-3.0.6.tgz</div></div>
</div>
<div>
<h3>Dépendances</h3>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;yum install libpng-devel libjpeg-devel libmcrypt-devel freetype-devel subversion autoconf213 libxml2-devel libtool-ltdl-devel bzip2-devel libcurl-devel rddtool&quot;</span></div></div>
<p>Si vous êtes sur un système 64bits vous aurez besoin des version 32bits des librairies JPEG et PNG.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">yum install</span> libjpeg-turbo-devel.i686 libpng-devel.i686</div></div>
</div>
<div>
<h2 dir="ltr">PHP</h2>
<p>Nous allons ajouter l&rsquo;extension &laquo;&nbsp;memcached&nbsp;&raquo; en static dans PHP. Pour cela il faut décompresser PHP et memcached.  Puis ensuite nous déplacerons memcached décompressé dans le dossier des extensions de PHP (le code source).</p>
<p>Ensuite il faut régénérer le fichier de configuration de la compilation pour que PHP puisse prendre en charge cette nouvelle extension.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxf memcache-3.0.6.tgz<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> jxf php-5.3.10.tar.bz2<br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> memcache-3.0.6 .<span style="color: #000000; font-weight: bold;">/</span>php-5.3.10<span style="color: #000000; font-weight: bold;">/</span>ext<span style="color: #000000; font-weight: bold;">/</span>memcache<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> php-5.3.10<br />
<span style="color: #c20cb9; font-weight: bold;">rm</span> configure<br />
.<span style="color: #000000; font-weight: bold;">/</span>buildconf <span style="color: #660033;">--force</span></div></div>
<p>Si vous rencontrez un problème lors de la recréation de la configuration allez voir mon billet sur l&rsquo;utilisation <a title="Fedora 14, regénerer le fichier « configure » de php pour la compilation" href="http://www.onestpasfatigue.com/mrslayers/2011/01/11/fedora-14-regenerer-le-fichier-configure-de-php-pour-la-compilation.html">d&rsquo;autoconf 2.13</a></p>
<p><span style="font-weight: bold;">Configuration et compilation</span></p>
</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>php-fpm <span style="color: #660033;">--enable-fpm</span> <span style="color: #660033;">--with-config-file-path</span>=<span style="color: #000000; font-weight: bold;">/</span>etc  --with-zlib <span style="color: #660033;">--with-bz2</span> <span style="color: #660033;">--with-gd</span> <span style="color: #660033;">--with-jpeg-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64 <span style="color: #660033;">--with-png-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>lib64 <span style="color: #660033;">--enable-mbstring</span> <span style="color: #660033;">--without-pear</span> <span style="color: #660033;">--enable-gd-native-ttf</span> <span style="color: #660033;">--enable-zip</span> <span style="color: #660033;">--without-pdo-sqlite</span> <span style="color: #660033;">--without-sqlite</span> <span style="color: #660033;">--without-sqlite3</span> <span style="color: #660033;">--with-mhash</span> <span style="color: #660033;">--with-mysql</span>=mysqlnd <span style="color: #660033;">--with-mysqli</span>=mysqlnd <span style="color: #660033;">--with-pdo-mysql</span>=mysqlnd <span style="color: #660033;">--with-curl</span> <span style="color: #660033;">--with-freetype-dir</span> <span style="color: #660033;">--enable-gd-native-ttf</span> <span style="color: #660033;">--with-mcrypt</span> <span style="color: #660033;">--enable-memcache</span>  --disable-ipv6<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;make install&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;cp php.ini-production /etc/php.ini&quot;</span></div></div>
<h4 dir="ltr">Script de démarrage</h4>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;cp ./sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;chmod 0755 /etc/init.d/php-fpm&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;cp /usr/local/php-fpm/etc/php-fpm.conf.default /usr/local/php-fpm/etc/php-fpm.conf&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;chown -R apache:apache /usr/local/php-fpm/var/&quot;</span></div></div>
<div>Ensuite il ne vous restera plus qu&rsquo;a lancer le démon &laquo;&nbsp;php-fpm&nbsp;&raquo;</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">service php-fpm start</div></div>
<div>Pour ce qui est de la configuration, je ferais surement un billet pour expliquer comment configurer php-fpm.</div>
<div>
<h3>Remarques</h3>
<ul>
<li>Pensez à régler le timezone dans le fichier php.ini</li>
<li>Régler la variable “error_log” dans le fichier php.ini</li>
</ul>
</div>
<h2>APC</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxf APC-3.1.9.tgz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> APC-3.1.9<br />
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>php-fpm<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>phpize<br />
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-apc</span> <span style="color: #660033;">--with-php-config</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>php-fpm<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php-config<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;make install&quot;</span></div></div>
<h3>Réglage dans le php.ini</h3>
<div class="codecolorer-container ini default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="ini codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">apc.so</span><br />
apc.enabled<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;1&quot;</span><br />
apc.shm_segments<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;1&quot;</span><br />
apc.shm_size<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;128M&quot;</span><br />
apc.num_files_hint<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;1024&quot;</span><br />
apc.ttl<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;7200&quot;</span><br />
apc.user_ttl<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;7200&quot;</span><br />
apc.gc_ttl<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;3600&quot;</span><br />
apc.cache_by_default<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;1&quot;</span><br />
<span style="color: #666666; font-style: italic;">;apc.filters=&quot;&quot;</span><br />
apc.mmap_file_mask<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;/tmp/apcphp5.XXXXXX&quot;</span><br />
apc.slam_defense<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span><br />
apc.file_update_protection<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;2&quot;</span><br />
apc.enable_cli<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span><br />
apc.max_file_size<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;1M&quot;</span><br />
apc.stat<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;1&quot;</span><br />
apc.write_lock<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;1&quot;</span><br />
apc.report_autofilter<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span><br />
apc.include_once_override<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span><br />
apc.rfc1867<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span><br />
apc.rfc1867_prefix<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;upload_&quot;</span><br />
apc.rfc1867_name<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;APC_UPLOAD_PROGRESS&quot;</span><br />
apc.rfc1867_freq<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span><br />
apc.localcache<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span><br />
apc.localcache.size<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;512&quot;</span><br />
apc.coredump_unmap<span style="color: #000066; font-weight:bold;">=</span><span style="color: #933;">&quot;0&quot;</span></div></div>
<div>
<h2 id="internal-source-marker_0.952888407278806" dir="ltr">Cherokee</h2>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">tar</span> zxf cherokee-1.2.101.tar.gz<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> cherokee-1.2.101<br />
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--with-wwwuser</span>=apache <span style="color: #660033;">--with-wwwgroup</span>=apache <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>cherokee <span style="color: #660033;">--sysconfdir</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<br />
<span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;make install&quot;</span></div></div>
<h3>Script de démarrage</h3>
<p>Je vous propose ce script de démarrage qu&rsquo;il faudra placer dans /etc/init.d</p>
<p><a title="Cherokee init.d script" href="http://pastebin.com/K7NzzL66" target="_blank">Cherokee init.d script</a></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">su</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;chmod +x /etc/init.d/cherokee&quot;</span></div></div>
<h3 dir="ltr">Administrer le serveur</h3>
<div>Pour administrer le serveur rien de plus simple.<br />
En effet, il existe une interface d’administration qui vous évitera de toucher au fichier de conf plutot indigeste&#8230;<br />
Sur votre serveur, connecté en root.</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>cherokee<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>cherokee-admin</div></div>
<p>L’administration va se lancer sur le port 9090 sur 127.0.0.1 et va vous générer un mot de passe. Ce mot de passe change à chaque lancement de l’administration.</p>
<p>Le probleme d’etre sur <a href="http://127.0.0.1:9090/">http://127.0.0.1:9090/</a> c’est que s’il s’agit d’un serveur distant (c’est à dire que ce n’est pas votre propre machine) vous aurez du mal à vous connecter (c’est à dire que si par exemple votre serveur à l’IP 192.168.10.1 vous ne pourrez pas vous y connecter dessus en faisant <a href="http://192.168.10.10:9090/">http://192.168.10.10:9090</a> ).</p>
<p>Pour résoudre ce probleme vous avez 2 solutions :</p>
</div>
<ul>
<li>Ajouter un paramètre lors du lancement de l’admin</li>
<li>Se connecter en utilisant un tunnel SSH</li>
</ul>
<div>Tout ceci est expliqué dans la documentation ( <a href="http://www.cherokee-project.com/doc/other_bundle_cherokee-admin.html">http://www.cherokee-project.com/doc/other_bundle_cherokee-admin.html</a> ) mais je vous réexplique :</div>
<div>En ajoutant le paramètre &laquo;&nbsp;-b&nbsp;&raquo; au lancement vous allez demander à l’administration d’écouter sur toutes les interfaces réseau (par défaut l’admin n&rsquo;écoute que sur l’interface locale, 127.0.0.1).<br />
Cela vous permet donc de vous connecter via l’IP “public” de votre serveur. Mais attention ! Car toute personne connaissant le port + le mot de passe peut alors venir modifier votre configuration. Ce n’est donc pas recommandé sur un serveur en production.L’autre méthode consiste à créer un tunnel SSH entre votre poste et le serveur distant. Pour cela votre poste doit tourner sous linux pour executer une commande &laquo;&nbsp;ssh&nbsp;&raquo;.<br />
Voici la commande</div>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-l</span> utilisateurServeurDistant <span style="color: #660033;">-L</span> <span style="color: #000000;">9090</span>:localhost:<span style="color: #000000;">9090</span> adresseIPServeurDistant</div></div>
<div>Cela va vous demander d’accepter la clef du serveur (si vous ne vous etes jamais connecté en SSH).<br />
Puis il faudra saisir le mot de passe correspondant à l’utilisateur distant que vous avez renseigné.<br />
Une fois que vous êtes connecté vous pouvez lancer un navigateur et vous connecter via <a href="http://localhost:9090/">http://localhost:9090/</a>Personnellement je préfère la première méthode mais avec quelques précautions :</div>
<ul>
<li>L’interface d’administration ne doit être lancée que lorsque vous en avez vraiment besoin. Une fois vos changements terminés, arrêtez-la.</li>
<li>Utilisez un firewall pour limiter les accès au port 9090 à votre seul adresse IP</li>
</ul>
<h3 dir="ltr">Configuration de la “source PHP”</h3>
<p>Cherokee ne va pas détecter PHP car il cherche la version “CGI” (Il cherche dans le PATH l’exécutable en plus). Donc nous allons paramétrer nous même la source.<br />
Utilisez l’interface d’admin de cherokee (voir le chapitre précédent)<br />
Dans la catégorie “Sources” cliquez sur le “+” pour ajouter.</p>
<ul>
<li>Tapez un surnom : PHP-FPM</li>
<li>Tapez la connection : 127.0.0.1:9000</li>
</ul>
<p>ps: Pensez à démarrer le démon de PHP-FPM</p>
<h2 dir="ltr">MySQL</h2>
<p><strong>Attention car si vous utilisez KDE, vous allez avoir un problème avec MySQL déjà installé !</strong></p>
<p>A faire en root :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">groupadd mysql<br />
useradd <span style="color: #660033;">-r</span> <span style="color: #660033;">-g</span> mysql mysql<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxf mysql-5.5.13-linux2.6-x86_64.tar.gz<br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> mysql-5.5.13-linux2.6-x86_64 <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><br />
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql-5.5.13-linux2.6-x86_64<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> mysql<br />
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> mysql .<br />
<span style="color: #c20cb9; font-weight: bold;">chgrp</span> <span style="color: #660033;">-R</span> mysql .<br />
scripts<span style="color: #000000; font-weight: bold;">/</span>mysql_install_db <span style="color: #660033;">--user</span>=mysql<br />
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> root .<br />
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> mysql data<br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> support-files<span style="color: #000000; font-weight: bold;">/</span>mysql.server <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysqld<br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> .<span style="color: #000000; font-weight: bold;">/</span>support-files<span style="color: #000000; font-weight: bold;">/</span>my-medium.cnf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>my.cnf<br />
chkconfig <span style="color: #660033;">--add</span> mysqld</div></div>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>Bon voila, je m’arrête ici pour ce billet, j&rsquo;espere qu&rsquo;il vous aura été utile <img src='http://www.onestpasfatigue.com/mrslayers/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2011/06/24/php-apc-cherokee-mysql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Désactiver le journal de dépréciation dans TYPO3</title>
		<link>http://www.onestpasfatigue.com/mrslayers/2011/06/08/desactiver-le-journal-de-depreciation-dans-typo3.html</link>
		<comments>http://www.onestpasfatigue.com/mrslayers/2011/06/08/desactiver-le-journal-de-depreciation-dans-typo3.html#comments</comments>
		<pubDate>Wed, 08 Jun 2011 06:00:34 +0000</pubDate>
		<dc:creator>MrSlayers</dc:creator>
				<category><![CDATA[Typo3]]></category>
		<category><![CDATA[deprecated]]></category>

		<guid isPermaLink="false">http://www.onestpasfatigue.com/mrslayers/?p=158</guid>
		<description><![CDATA[Comment désactiver le journal de dépréciation de TYPO3]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/06/logoTYPO3.jpg" rel="lightbox[158]"><img class="aligncenter size-medium wp-image-165" title="logoTYPO3" src="http://www.onestpasfatigue.com/mrslayers/wp-content/uploads/2011/06/logoTYPO3-300x126.jpg" alt="" width="300" height="126" /></a></p>
<p>Par défaut TYPO3 génére un fichier journal contenant les appels à des API de TYPO3 dépréciées.</p>
<p>En production il n&rsquo;est pas recommandé de laisser activé cette fonctionnalités car, à terme, cela réduit les performances. Sauf que la documentation n&rsquo;est pas très claire au premier abord :</p>
<blockquote><p>Commalist: Enables the logging of deprecated methods and functions. Default is &lsquo;file&rsquo;. The following options are allowed: &lsquo;file&rsquo;: The log file will be written to typo3conf/deprecation_[hash-value].log &lsquo;devlog&rsquo;: The log will be written to the development log &lsquo;console&rsquo;: The log will be displayed in the Backend&rsquo;s Debug Console. The logging options can be combined by comma-separating them.</p></blockquote>
<p>Bon d&rsquo;accord c&rsquo;est gentil de me dire que je peux enregistrer ce journal dans différents endroits, mais moi je veux le désactiver.<br />
En fait, c&rsquo;est très simple, il suffit de mettre la valeur zéro !</p>
<p>Voyez ci-dessous cela que cela donne dans le &laquo;&nbsp;localconf.php&nbsp;&raquo; de TYPO3</p>
<blockquote><p>$TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] = &rsquo;0&prime;;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.onestpasfatigue.com/mrslayers/2011/06/08/desactiver-le-journal-de-depreciation-dans-typo3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
