<?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>SkyMinds.Net &#187; linux</title>
	<atom:link href="http://www.skyminds.net/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.skyminds.net</link>
	<description>~ by Matt</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:34:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.skyminds.net/?pushpress=hub'/>
		<item>
		<title>MySQL : résoudre l&#8217;erreur &#8220;Table is marked as crashed and last (automatic?) repair failed&#8221;</title>
		<link>http://www.skyminds.net/mysql-resoudre-lerreur-table-is-marked-as-crashed-and-last-automatic-repair-failed/</link>
		<comments>http://www.skyminds.net/mysql-resoudre-lerreur-table-is-marked-as-crashed-and-last-automatic-repair-failed/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 07:52:10 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web/Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[disque dur]]></category>
		<category><![CDATA[espace]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[serveur dédié]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[tuto]]></category>

		<guid isPermaLink="false">http://www.skyminds.net/?p=5591</guid>
		<description><![CDATA[Hier soir, gros bug sur le site&#160;: plus moyen d&#8217;acc&#233;der aux pages du site ou de sauvegarder un article. Je lance un top, le serveur n&#8217;a pas l&#8217;air d&#8217;&#234;tre surcharg&#233; du tout. Je relance Apache, Varnish et MySQL et l&#224;&#8230; Stopping MySQL database server: mysqld failed! /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! [...]]]></description>
			<content:encoded><![CDATA[<p>Hier soir, gros bug sur le site&nbsp;: plus moyen d&#8217;acc&eacute;der aux pages du site ou de sauvegarder un article. Je lance un <code>top</code>, le serveur n&#8217;a pas l&#8217;air d&#8217;&ecirc;tre surcharg&eacute; du tout. Je relance Apache, Varnish et MySQL et l&agrave;&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Stopping MySQL database server: mysqld failed<span style="color: #000000; font-weight: bold;">!</span>
<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>mysql: ERROR: The partition with <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql is too full<span style="color: #000000; font-weight: bold;">!</span> ... failed<span style="color: #000000; font-weight: bold;">!</span></pre></div></div>

<p>Ah cette erreur-l&agrave;, <a href="http://www.skyminds.net/resoudre-le-non-redemarrage-du-serveur-mysql-le-manque-despace-sur-une-partition-disque/">je l&#8217;ai d&eacute;j&agrave; eue</a><span class="fine">&nbsp;</span>! Je fais un peu de m&eacute;nage et je relance MySQL&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><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>mysql restart</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
Checking <span style="color: #000000; font-weight: bold;">for</span> corrupt, not cleanly closed and upgrade needing tables..
ERROR <span style="color: #000000;">144</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>HY000<span style="color: #7a0874; font-weight: bold;">&#41;</span> at line <span style="color: #000000;">1</span>: Table <span style="color: #ff0000;">'./skyminds/wp_posts'</span> is marked <span style="color: #c20cb9; font-weight: bold;">as</span> crashed and <span style="color: #c20cb9; font-weight: bold;">last</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>automatic?<span style="color: #7a0874; font-weight: bold;">&#41;</span> repair failed</pre></div></div>

<p>Et l&agrave;, c&#8217;est le drame&nbsp;: le terminal est dans les choux comme attendant quelque chose et en lan&ccedil;ant le site, il n&#8217;y a plus aucune information. Rien que le design, plus d&#8217;articles. Gloups.</p>
<p><img src="http://www.skyminds.net/images/mysql-table-crash.png" alt="mysql table crash MySQL : résoudre lerreur Table is marked as crashed and last (automatic?) repair failed" title="mysql-table-crash" width="661" height="410" class="aligncenter size-full wp-image-5592" /></p>
<p>Je jette un coup d&#8217;oeil sur le serveur, j&#8217;ai mes sauvegardes des derniers jours mais pas de tout ce que j&#8217;ai &eacute;crit aujourd&#8217;hui. Je tente un REPAIR mais phpmyadmin refuse cat&eacute;goriquement&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SQL show index from <span style="color: #000000; font-weight: bold;">`</span>wp_posts<span style="color: #000000; font-weight: bold;">`</span> failed : Table <span style="color: #ff0000;">'./skyminds/wp_posts'</span> is marked <span style="color: #c20cb9; font-weight: bold;">as</span> crashed and <span style="color: #c20cb9; font-weight: bold;">last</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>automatic?<span style="color: #7a0874; font-weight: bold;">&#41;</span> repair failed</pre></div></div>

<h4>La solution&nbsp;: lancer myisamchk</h4>
<p>La solution que j&#8217;ai utilis&eacute; consiste &agrave; lancer la commande myisamchk, qui est une commande de bas niveau qui va v&eacute;rifier et r&eacute;parer notre table.</p>
<p>On commence par arr&ecirc;ter le serveur MySQL&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><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>mysql stop</pre></div></div>

<p>et on lance myisamchk avec ces param&egrave;tres sur notre base de donn&eacute;es qui se trouve sous <code>/var/lib/mysql/</code>&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">myisamchk <span style="color: #660033;">-r</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">-f</span> --sort_buffer_size=128M --key_buffer_size=128M <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>skyminds<span style="color: #000000; font-weight: bold;">/</span>wp_posts.MYI</pre></div></div>

<p>Voil&agrave; ce que cela retourne&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">- recovering <span style="color: #7a0874; font-weight: bold;">&#40;</span>with <span style="color: #c20cb9; font-weight: bold;">sort</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> MyISAM-table <span style="color: #ff0000;">'/var/lib/mysql/skyminds/wp_posts.MYI'</span>
Data records: <span style="color: #000000;">0</span>
- Fixing index <span style="color: #000000;">1</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">295411</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">2</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">3</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">4</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">5</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">6</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">7</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">8</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">9</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">3421</span> keys
  - Dumping <span style="color: #000000;">3420</span> keys
- Fixing index <span style="color: #000000;">10</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">1177347</span> keys
  - Dumping <span style="color: #000000;">275199</span> keys
- Fixing index <span style="color: #000000;">11</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">1177347</span> keys
  - Dumping <span style="color: #000000;">275199</span> keys
- Fixing index <span style="color: #000000;">12</span>
  - Searching <span style="color: #000000; font-weight: bold;">for</span> keys, allocating buffer <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #000000;">1177347</span> keys
  - Dumping <span style="color: #000000;">275199</span> keys
Data records: <span style="color: #000000;">3420</span></pre></div></div>

<p>On relance MySQL&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><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>mysql start</pre></div></div>

<p>et cette fois, tout se passe bien&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Starting MySQL database server: mysqld.
Checking <span style="color: #000000; font-weight: bold;">for</span> corrupt, not cleanly closed and upgrade needing tables..</pre></div></div>

<p>Tout est revenu mais je me dis que je devrais peut-&ecirc;tre passer &agrave; 2 sauvegardes par jour&#8230;</p>
<hr />
<p><small>© Matt for <a href="http://www.skyminds.net">SkyMinds.Net</a>, 1999-2012. |
<a href="http://www.skyminds.net/mysql-resoudre-lerreur-table-is-marked-as-crashed-and-last-automatic-repair-failed/">Permalink</a> |
<a href="http://www.skyminds.net/mysql-resoudre-lerreur-table-is-marked-as-crashed-and-last-automatic-repair-failed/#comments">Un commentaire</a> | Classé dans <a href="http://www.skyminds.net/webtech/" title="View all posts in Web/Tech" rel="category tag">Web/Tech</a> | 532 mots.</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.skyminds.net/mysql-resoudre-lerreur-table-is-marked-as-crashed-and-last-automatic-repair-failed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux : forcer Skype à détecter une webcam USB avec video4linux</title>
		<link>http://www.skyminds.net/linux-forcer-skype-a-detecter-une-webcam-usb-avec-video4linux/</link>
		<comments>http://www.skyminds.net/linux-forcer-skype-a-detecter-une-webcam-usb-avec-video4linux/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 07:56:45 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web/Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tuto]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video4linux]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://www.skyminds.net/?p=5537</guid>
		<description><![CDATA[Le probl&#232;me&#160;: une webcam USB non reconnue par Skype sous Ubuntu J&#8217;ai de nouveau install&#233; Skype sur ma machine apr&#232;s des ann&#233;es sans l&#8217;avoir utilis&#233; et &#233;videmment, ma webcam n&#8217;est pas reconnue sous Ubuntu. Apr&#232;s quelques bidouillages, on y arrive quand m&#234;me. Solution&#160;: cr&#233;er un raccourci pour lancer Skype avec le mode de compatibilit&#233; video4linux [...]]]></description>
			<content:encoded><![CDATA[<h4>Le probl&egrave;me&nbsp;: une webcam USB non reconnue par Skype sous Ubuntu</h4>
<p>J&#8217;ai de nouveau install&eacute; <a href="http://www.skyminds.net/tag/skype/">Skype</a> sur ma machine apr&egrave;s des ann&eacute;es sans l&#8217;avoir utilis&eacute; et &eacute;videmment, ma webcam n&#8217;est pas reconnue sous Ubuntu. Apr&egrave;s quelques bidouillages, on y arrive quand m&ecirc;me.</p>
<h4>Solution&nbsp;: cr&eacute;er un raccourci pour lancer Skype avec le mode de compatibilit&eacute; video4linux</h4>
<p>Il est n&eacute;cessaire d&#8217;indiquer &agrave; Skype de pr&eacute;charger la compatibilit&eacute; avec <code>video4linux</code> donc on installe ce dernier&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libv4l-<span style="color: #000000;">0</span></pre></div></div>

<p>Ensuite, si vous avez un syst&egrave;me 32-bits, entrez ceci dans le terminal&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;#! /bin/sh&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> skype-cam-fix
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> skype-cam-fix
<span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x skype-cam-fix
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> skype-cam-fix <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>bin</pre></div></div>

<p>Si vous avez un syst&egrave;me 64-bits&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;#! /bin/sh&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> skype-cam-fix
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> skype-cam-fix
<span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x skype-cam-fix
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> skype-cam-fix <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>bin</pre></div></div>

<p><a href="http://www.skyminds.net/linux-forcer-skype-a-detecter-une-webcam-usb-avec-video4linux/">Lire la suite de Linux : forcer Skype à détecter une webcam USB avec video4linux » </a>
<br /><br /></p>
<hr />
<p><small>© Matt for <a href="http://www.skyminds.net">SkyMinds.Net</a>, 1999-2012. |
<a href="http://www.skyminds.net/linux-forcer-skype-a-detecter-une-webcam-usb-avec-video4linux/">Permalink</a> |
<a href="http://www.skyminds.net/linux-forcer-skype-a-detecter-une-webcam-usb-avec-video4linux/#comments">Pas de commentaires</a> | Classé dans <a href="http://www.skyminds.net/webtech/" title="View all posts in Web/Tech" rel="category tag">Web/Tech</a> | 169 mots.</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.skyminds.net/linux-forcer-skype-a-detecter-une-webcam-usb-avec-video4linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serveur dédié : configurer la limite mémoire pour PHP et Suhosin</title>
		<link>http://www.skyminds.net/serveur-dedie-configurer-la-limite-memoire-pour-php-et-suhosin/</link>
		<comments>http://www.skyminds.net/serveur-dedie-configurer-la-limite-memoire-pour-php-et-suhosin/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 07:10:22 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web/Tech]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[sécurité]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[serveur dédié]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[suhosin]]></category>
		<category><![CDATA[tuto]]></category>

		<guid isPermaLink="false">http://www.skyminds.net/?p=5076</guid>
		<description><![CDATA[Aujourd&#8217;hui, je vous livre la solution &#224; un probl&#232;me auquel vous avez peut-&#234;tre &#233;t&#233; confront&#233; lors de la configuration de votre serveur d&#233;di&#233; &#8211; il s&#8217;agit d&#8217;une erreur que l&#8217;on peut trouver dans les fichiers logs d&#8217;Apache&#160;: Dec 12 16:19:26 mail suhosin&#91;22860&#93;: ALERT - script tried to increase memory_limit to 268435456 bytes which is above [...]]]></description>
			<content:encoded><![CDATA[ <p><img src="http://www.skyminds.net/images/suhosin_logo.png" alt="suhosin logo Serveur dédié : configurer la limite mémoire pour PHP et Suhosin" title="suhosin_logo" width="236" height="84" class="alignright size-full wp-image-5430" />Aujourd&#8217;hui, je vous livre la solution &agrave; un probl&egrave;me auquel vous avez peut-&ecirc;tre &eacute;t&eacute; confront&eacute; lors de la configuration de votre serveur d&eacute;di&eacute; &#8211; il s&#8217;agit d&#8217;une erreur que l&#8217;on peut trouver dans les fichiers logs d&#8217;Apache&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Dec <span style="color: #000000;">12</span> <span style="color: #000000;">16</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">26</span> mail suhosin<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">22860</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>: ALERT - script tried to increase memory_limit to <span style="color: #000000;">268435456</span> bytes <span style="color: #c20cb9; font-weight: bold;">which</span> is above the allowed value <span style="color: #7a0874; font-weight: bold;">&#40;</span>attacker <span style="color: #ff0000;">'82.83.84.85'</span>, <span style="color: #c20cb9; font-weight: bold;">file</span> <span style="color: #ff0000;">'/home/skyminds/public_html/wp-admin/admin.php'</span>, line <span style="color: #000000;">96</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<h4>Etape 1&nbsp;: param&eacute;trage de memory_limit dans php.ini</h4>
<p>On &eacute;dite notre fichier <code>php.ini</code>&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>php.ini</pre></div></div>

<p>On recherche la variable <code>memory_limit</code> et on l&#8217;augmente &agrave; 256MB&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">; Maximum amount of memory a script may consume <span style="color: #7a0874; font-weight: bold;">&#40;</span>128MB<span style="color: #7a0874; font-weight: bold;">&#41;</span>
; http:<span style="color: #000000; font-weight: bold;">//</span>php.net<span style="color: #000000; font-weight: bold;">/</span>memory-limit
memory_limit = 256M</pre></div></div>

<p><strong>Note</strong>&nbsp;: v&eacute;rifiez que vous &eacute;ditez bien le bon fichier php.ini<span class="fine">&nbsp;</span>! Je me suis aper&ccedil;u apr&egrave;s quelques essais que celui qui correspondait &agrave; mon installation &eacute;tait en fait <code>/etc/php5/apache2filter/php.ini</code>. Lancez un&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #990000;">phpinfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p> pour &ecirc;tre s&ucirc;r du fichier &agrave; &eacute;diter.</p>
<p><a href="http://www.skyminds.net/serveur-dedie-configurer-la-limite-memoire-pour-php-et-suhosin/">Lire la suite de Serveur dédié : configurer la limite mémoire pour PHP et Suhosin » </a>
<br /><br /></p>
<hr />
<p><small>© Matt for <a href="http://www.skyminds.net">SkyMinds.Net</a>, 1999-2011. |
<a href="http://www.skyminds.net/serveur-dedie-configurer-la-limite-memoire-pour-php-et-suhosin/">Permalink</a> |
<a href="http://www.skyminds.net/serveur-dedie-configurer-la-limite-memoire-pour-php-et-suhosin/#comments">Pas de commentaires</a> | Classé dans <a href="http://www.skyminds.net/webtech/" title="View all posts in Web/Tech" rel="category tag">Web/Tech</a> | 228 mots.</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.skyminds.net/serveur-dedie-configurer-la-limite-memoire-pour-php-et-suhosin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux : résoudre les erreurs communes de clé GPG dans APT</title>
		<link>http://www.skyminds.net/linux-resoudre-les-erreurs-communes-de-cle-gpg-dans-apt/</link>
		<comments>http://www.skyminds.net/linux-resoudre-les-erreurs-communes-de-cle-gpg-dans-apt/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 07:35:24 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web/Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[clés]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[tuto]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://www.skyminds.net/?p=4925</guid>
		<description><![CDATA[De temps en temps, il arrive qu&#8217;en faisant un apt-get update, on obtienne quelques erreurs de cl&#233;s GPG, soit parce qu&#8217;elles ont chang&#233;, soit parce qu&#8217;elle n&#8217;ont pas &#233;t&#233; ajout&#233;es en m&#234;me temps que les d&#233;p&#244;ts auxquels elles sont associ&#233;es. Voici une petite compilation des situations que j&#8217;ai connu jusqu&#8217;&#224; pr&#233;sent. La cl&#233; publique n&#8217;est [...]]]></description>
			<content:encoded><![CDATA[<p>De temps en temps, il arrive qu&#8217;en faisant un apt-get update, on obtienne quelques erreurs de cl&eacute;s GPG, soit parce qu&#8217;elles ont chang&eacute;, soit parce qu&#8217;elle n&#8217;ont pas &eacute;t&eacute; ajout&eacute;es en m&ecirc;me temps que les d&eacute;p&ocirc;ts auxquels elles sont associ&eacute;es.</p>
<p><img src="http://www.skyminds.net/images/cle-publique-gpg-facom.jpg" alt="cle publique gpg facom Linux : résoudre les erreurs communes de clé GPG dans APT" title="cle-publique-gpg-facom" width="500" height="110" class="aligncenter size-full wp-image-5384" /></p>
<p>Voici une petite compilation des situations que j&#8217;ai connu jusqu&#8217;&agrave; pr&eacute;sent.</p>
<h4>La cl&eacute; publique n&#8217;est pas disponible&nbsp;: NO_PUBKEY</h4>
<p>Le message d&#8217;erreur habituel, dont voici un exemple&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">W: GPG error: http:<span style="color: #000000; font-weight: bold;">//</span>ppa.launchpad.net maverick Release: Les signatures suivantes n<span style="color: #ff0000;">'ont pas pu être vérifiées car la clé publique n'</span>est pas disponible : NO_PUBKEY 632D16BB0C713DA6</pre></div></div>

<p>Ce qui est important ici, c&#8217;est le code de la cl&eacute;&nbsp;: 632D16BB0C713DA6. Nous avons besoin des 8 derniers caract&egrave;res de cette cl&eacute; pour taper notre commande. Ces 8 caract&egrave;res sont 0C713DA6 donc dans le terminal, on entre&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gpg <span style="color: #660033;">--keyserver</span> hkp:<span style="color: #000000; font-weight: bold;">//</span>keyserver.ubuntu.com:<span style="color: #000000;">11371</span> <span style="color: #660033;">--recv-key</span> 0C713DA6</pre></div></div>

<p>puis&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gpg <span style="color: #660033;">-a</span> <span style="color: #660033;">--export</span> 0C713DA6 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> add -</pre></div></div>

<p>et on peut relancer la mise &agrave; jour&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>La cl&eacute; ayant &eacute;t&eacute; ajout&eacute;e, le message d&#8217;erreur dispara&icirc;t.</p>
<p><a href="http://www.skyminds.net/linux-resoudre-les-erreurs-communes-de-cle-gpg-dans-apt/">Lire la suite de Linux : résoudre les erreurs communes de clé GPG dans APT » </a>
<br /><br /></p>
<hr />
<p><small>© Matt for <a href="http://www.skyminds.net">SkyMinds.Net</a>, 1999-2011. |
<a href="http://www.skyminds.net/linux-resoudre-les-erreurs-communes-de-cle-gpg-dans-apt/">Permalink</a> |
<a href="http://www.skyminds.net/linux-resoudre-les-erreurs-communes-de-cle-gpg-dans-apt/#comments">Pas de commentaires</a> | Classé dans <a href="http://www.skyminds.net/webtech/" title="View all posts in Web/Tech" rel="category tag">Web/Tech</a> | 312 mots.</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.skyminds.net/linux-resoudre-les-erreurs-communes-de-cle-gpg-dans-apt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serveur dédié : sauvegarde automatique des fichiers avec Backup Manager sur le serveur de sauvegarde OVH</title>
		<link>http://www.skyminds.net/serveur-dedie-sauvegarde-automatique-des-fichiers-avec-backup-manager-sur-le-serveur-de-sauvegarde-ovh/</link>
		<comments>http://www.skyminds.net/serveur-dedie-sauvegarde-automatique-des-fichiers-avec-backup-manager-sur-le-serveur-de-sauvegarde-ovh/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 06:53:13 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web/Tech]]></category>
		<category><![CDATA[base de données]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[disque dur]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OVH]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sauvegarde]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[sécurité]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[serveur dédié]]></category>
		<category><![CDATA[tuto]]></category>

		<guid isPermaLink="false">http://www.skyminds.net/?p=5315</guid>
		<description><![CDATA[Backup Manager permet d&#8217;effectuer des sauvegardes quotidiennes du syst&#232;me&#160;: il cr&#233;e des archives dans plusieurs formats de compression (tar, gzip, bzip2, lzma, dar, zip) et peut les exporter vers un serveur FTP. Dans notre cas, nous allons l&#8217;installer et le configurer pour envoyer tout ce qui est important sur notre serveur sur le serveur FTP [...]]]></description>
			<content:encoded><![CDATA[ <p><a href="http://www.backup-manager.org/">Backup Manager</a> permet d&#8217;effectuer des sauvegardes quotidiennes du syst&egrave;me&nbsp;: il cr&eacute;e des archives dans plusieurs formats de compression (tar, gzip, bzip2, lzma, dar, zip) et peut les exporter vers un serveur FTP.</p>
<p><img src="http://www.skyminds.net/images/backup-manager.gif" alt="backup manager Serveur dédié : sauvegarde automatique des fichiers avec Backup Manager sur le serveur de sauvegarde OVH" title="backup-manager" width="673" height="154" class="aligncenter size-full wp-image-5363" /></p>
<p>Dans notre cas, nous allons l&#8217;installer et le configurer pour envoyer tout ce qui est important sur notre serveur sur le serveur FTP externe de sauvegarde fourni gratuitement par OVH (100 Go). </p>
<h4>Etape 1&nbsp;: installation de Backup Manager</h4>
<p>C&#8217;est classique&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> backup-manager</pre></div></div>

<p>A la fin de l&#8217;installation, un assistant se lance et vous permet de configurer des options par d&eacute;faut. Ou vous pouvez configurer &agrave; la main, comme indiqu&eacute; dans l&#8217;&eacute;tape suivante.</p>
<p><a href="http://www.skyminds.net/serveur-dedie-sauvegarde-automatique-des-fichiers-avec-backup-manager-sur-le-serveur-de-sauvegarde-ovh/">Lire la suite de Serveur dédié : sauvegarde automatique des fichiers avec Backup Manager sur le serveur de sauvegarde OVH » </a>
<br /><br /></p>
<hr />
<p><small>© Matt for <a href="http://www.skyminds.net">SkyMinds.Net</a>, 1999-2011. |
<a href="http://www.skyminds.net/serveur-dedie-sauvegarde-automatique-des-fichiers-avec-backup-manager-sur-le-serveur-de-sauvegarde-ovh/">Permalink</a> |
<a href="http://www.skyminds.net/serveur-dedie-sauvegarde-automatique-des-fichiers-avec-backup-manager-sur-le-serveur-de-sauvegarde-ovh/#comments">Pas de commentaires</a> | Classé dans <a href="http://www.skyminds.net/webtech/" title="View all posts in Web/Tech" rel="category tag">Web/Tech</a> | 617 mots.</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.skyminds.net/serveur-dedie-sauvegarde-automatique-des-fichiers-avec-backup-manager-sur-le-serveur-de-sauvegarde-ovh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accélérer le démarrage et l&#8217;arrêt d&#8217;Ubuntu</title>
		<link>http://www.skyminds.net/accelerer-demarrage-et-arret-ubuntu/</link>
		<comments>http://www.skyminds.net/accelerer-demarrage-et-arret-ubuntu/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 06:12:17 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Web/Tech]]></category>
		<category><![CDATA[BleachBit]]></category>
		<category><![CDATA[disque dur]]></category>
		<category><![CDATA[espace]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[services]]></category>
		<category><![CDATA[tuto]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[UbuntuTweak]]></category>

		<guid isPermaLink="false">http://www.skyminds.net/?p=5250</guid>
		<description><![CDATA[Cela fait quelques ann&#233;es que mon syst&#232;me tourne sous Ubuntu et je n&#8217;ai jamais eu &#224; r&#233;installer l&#8217;OS. Et pourtant, on peut dire que je ne le m&#233;nage&#160;: j&#8217;installe des applications, teste tout ce que je trouve sous la main, d&#233;sinstalle&#8230; Avec le temps, j&#8217;ai remarqu&#233; qu&#8217;Ubuntu mettait de plus en plus de temps &#224; [...]]]></description>
			<content:encoded><![CDATA[<p>Cela fait quelques ann&eacute;es que mon syst&egrave;me tourne sous Ubuntu et je n&#8217;ai jamais eu &agrave; r&eacute;installer l&#8217;OS. Et pourtant, on peut dire que je ne le m&eacute;nage&nbsp;: j&#8217;installe des applications, teste tout ce que je trouve sous la main, d&eacute;sinstalle&#8230; Avec le temps, j&#8217;ai remarqu&eacute; qu&#8217;Ubuntu mettait de plus en plus de temps &agrave; d&eacute;marrer donc je me suis pench&eacute; sur l&#8217;optimisation du d&eacute;marrage du syst&egrave;me.</p>
<h4>D&eacute;sactiver les services inutiles</h4>
<p>Mon PC principal est un desktop donc certains services ne sont pas vraiment utiles&nbsp;: <code>laptop-mode</code> (permet de g&eacute;rer la fermeture de l&#8217;&eacute;cran), les <code>hotkeys</code> (touches en bleu sur les portables)&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> laptop-mode remove
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> hotkey-setup remove</pre></div></div>

<p>Je n&#8217;ai ni lecteur de carte PCMCIA, ni Bluetooth&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> pcmcia remove
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> pcmciautils remove 
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> bluetooth remove
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> bluez-utils remove</pre></div></div>

<p>Si vous avez une connexion ADSL, les services pppd-dns et dns-clean ne vous serviront &agrave; rien. Ces derniers permettent surtout de g&eacute;rer les connexions de type dial-up (ancien modem RTC).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> dns-clean remove
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> pppd-dns remove</pre></div></div>

<p><strong>Note</strong>&nbsp;: pour r&eacute;tablir un service, tapez&nbsp;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #7a0874; font-weight: bold;">&#91;</span>nom <span style="color: #c20cb9; font-weight: bold;">du</span> service<span style="color: #7a0874; font-weight: bold;">&#93;</span> defaults</pre></div></div>

<p><a href="http://www.skyminds.net/accelerer-demarrage-et-arret-ubuntu/">Lire la suite de Accélérer le démarrage et l&#8217;arrêt d&#8217;Ubuntu » </a>
<br /><br /></p>
<hr />
<p><small>© Matt for <a href="http://www.skyminds.net">SkyMinds.Net</a>, 1999-2011. |
<a href="http://www.skyminds.net/accelerer-demarrage-et-arret-ubuntu/">Permalink</a> |
<a href="http://www.skyminds.net/accelerer-demarrage-et-arret-ubuntu/#comments">Pas de commentaires</a> | Classé dans <a href="http://www.skyminds.net/webtech/" title="View all posts in Web/Tech" rel="category tag">Web/Tech</a> | 467 mots.</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.skyminds.net/accelerer-demarrage-et-arret-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

