<?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>Lesbazeilles.com &#187; Online.net</title>
	<atom:link href="http://www.lesbazeilles.com/tag/online-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lesbazeilles.com</link>
	<description>Drupal et autres joyeusetés</description>
	<lastBuildDate>Mon, 30 May 2011 15:41:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Installer Drupal sur Online : les erreurs 500</title>
		<link>http://www.lesbazeilles.com/2009/09/installer-drupal-sur-online/</link>
		<comments>http://www.lesbazeilles.com/2009/09/installer-drupal-sur-online/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 15:50:13 +0000</pubDate>
		<dc:creator>Pierre Lesbazeilles</dc:creator>
				<category><![CDATA[Web dev]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Online.net]]></category>

		<guid isPermaLink="false">http://www.lesbazeilles.com/?p=69</guid>
		<description><![CDATA[Attention Suite à la mise a jour de Drupal, j&#8217;ai modifié le fichier .htaccess vous le trouverez dans un autre article Si vous rencontrez des erreurs (erreur 500) après l&#8217;installation de Drupal sur online.net, voici quelques petites mofications que vous devez effectuer. Je pense que c&#8217;est la même chose pour les pages de Free.fr Modifier [...]]]></description>
			<content:encoded><![CDATA[<div style="border:1px solid #FF0000;-moz-border-radius: 3px;margin:10px;padding:10px;"><strong>Attention</strong><br />
Suite à la mise a jour de Drupal, j&#8217;ai modifié le fichier   .htaccess <a href="http://www.lesbazeilles.com/2010/04/installer-drupal-sur-online-nouveau-fichier-htaccess-suite-a-la-mise-a-jour-vers-la-version-6-16/">vous le trouverez dans un autre article</a></div>
<p><a href="http://www.lesbazeilles.com/wp-content/uploads/2009/09/druplicon120x138.png"><img class="size-full wp-image-94 alignleft" title="druplicon" src="http://www.lesbazeilles.com/wp-content/uploads/2009/09/druplicon120x138.png" alt="logo de Drupla" width="72" height="83" /></a></p>
<p>Si vous rencontrez des erreurs (<a href="http://500.online.net/" target="_blank">erreur 500</a>) après l&#8217;installation de <a href="http://drupal.org">Drupal</a> sur online.net, voici quelques petites mofications que vous devez effectuer. Je pense que c&#8217;est la même chose pour les pages de Free.fr</p>
<p><span id="more-69"></span></p>
<h4>Modifier le fichier <strong>.htaccess</strong> de la racine du site Drupal</h4>
<p>Ajouter le support PHP5 (Faq sur online :  <a href="http://faq.online.net/hebergement-web/php#activer_php5" target="_blank">Activer PHP5</a>):</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p69code6'); return false;">View Code</a> APACHE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p696"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p69code6"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;">#PHP5</span>
<span style="color: #00007f;">AddType</span> application/x-httpd-php5 .php</pre></td></tr></table></div>

<p>Commenter la ligne &#8216;Options -Indexes&#8217; (interdire le listage du répertoiresi index.php  n&#8217;est pas présent) et ajouter cette ligne &#8216;IndexOptions -Indexes&#8217;<br />
(Faq Online : <a href="http://faq.online.net/hebergement-web/htaccess#empecher_le_listing_d_un_repertoire" target="_blank">empecher le listing d&#8217;un répertoire</a>)</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p69code7'); return false;">View Code</a> APACHE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p697"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p69code7"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># Don't show directory listings for URLs which map to a directory.</span>
<span style="color: #adadad; font-style: italic;"># Options -Indexes</span>
<span style="color: #00007f;">IndexOptions</span> -<span style="color: #0000ff;">Indexes</span></pre></td></tr></table></div>

<p>Commenter la ligne  &#8216;Options +FollowSymLinks&#8217; (suivre les liens symboliques : cette option n&#8217;est pas obligatoire et rarement utile dans l&#8217;url rewriting, Online ne supporte pas cette option. MAJ : Online ne supporte pas la commande Options&#8230;.)<br />
<a href="http://faq.online.net/hebergement-web/htaccess#rewrite_rules" target="_blank">extrait de la faq</a> :</p>
<blockquote><p>La directive FollowSymlinks est activé et ne peut être modifiée, il ne faut donc pas la déclarer, sinon vous auriez une error http 500 .</p></blockquote>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p69code8'); return false;">View Code</a> APACHE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p698"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p69code8"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;"># Follow symbolic links in this directory.</span>
<span style="color: #adadad; font-style: italic;">#Options +FollowSymLinks</span></pre></td></tr></table></div>

<p>Voici le code du fichier.htaccess  complet  :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p69code9'); return false;">View Code</a> APACHE</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p699"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
</pre></td><td class="code" id="p69code9"><pre class="apache" style="font-family:monospace;"><span style="color: #adadad; font-style: italic;">#PHP5</span>
<span style="color: #00007f;">AddType</span> application/x-httpd-php5 .php
&nbsp;
<span style="color: #adadad; font-style: italic;">#</span>
<span style="color: #adadad; font-style: italic;"># Apache/PHP/Drupal settings:</span>
<span style="color: #adadad; font-style: italic;">#</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># Protect files and directories from prying eyes.</span>
&nbsp;
  <span style="color: #00007f;">Order</span> <span style="color: #00007f;">allow</span>,<span style="color: #00007f;">deny</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># Don't show directory listings for URLs which map to a directory.</span>
<span style="color: #adadad; font-style: italic;"># Options -Indexes</span>
<span style="color: #00007f;">IndexOptions</span> -<span style="color: #0000ff;">Indexes</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># Follow symbolic links in this directory.</span>
<span style="color: #adadad; font-style: italic;">#Options +FollowSymLinks</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># Make Drupal handle any 404 errors.</span>
<span style="color: #00007f;">ErrorDocument</span> <span style="color: #ff0000;">404</span> /index.php
&nbsp;
<span style="color: #adadad; font-style: italic;"># Force simple error message for requests for non-existent favicon.ico.</span>
&nbsp;
  <span style="color: #adadad; font-style: italic;"># There is no end quote below, for compatibility with Apache 1.3.</span>
  <span style="color: #00007f;">ErrorDocument</span> <span style="color: #ff0000;">404</span> <span style="color: #7f007f;">&quot;The requested file favicon.ico was not found.&quot;</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># Set the default handler.</span>
<span style="color: #00007f;">DirectoryIndex</span> index.php
&nbsp;
<span style="color: #adadad; font-style: italic;"># Override PHP settings. More in sites/default/settings.php</span>
<span style="color: #adadad; font-style: italic;"># but the following cannot be changed at runtime.</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># PHP 4, Apache 1.</span>
&nbsp;
  <span style="color: #00007f;">php_value</span> magic_quotes_gpc                <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> register_globals                <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> session.auto_start              <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> mbstring.http_input             pass
  <span style="color: #00007f;">php_value</span> mbstring.http_output            pass
  <span style="color: #00007f;">php_value</span> mbstring.encoding_translation   <span style="color: #ff0000;">0</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># PHP 4, Apache 2.</span>
&nbsp;
  <span style="color: #00007f;">php_value</span> magic_quotes_gpc                <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> register_globals                <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> session.auto_start              <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> mbstring.http_input             pass
  <span style="color: #00007f;">php_value</span> mbstring.http_output            pass
  <span style="color: #00007f;">php_value</span> mbstring.encoding_translation   <span style="color: #ff0000;">0</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># PHP 5, Apache 1 and 2.</span>
&nbsp;
  <span style="color: #00007f;">php_value</span> magic_quotes_gpc                <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> register_globals                <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> session.auto_start              <span style="color: #ff0000;">0</span>
  <span style="color: #00007f;">php_value</span> mbstring.http_input             pass
  <span style="color: #00007f;">php_value</span> mbstring.http_output            pass
  <span style="color: #00007f;">php_value</span> mbstring.encoding_translation   <span style="color: #ff0000;">0</span>
&nbsp;
<span style="color: #adadad; font-style: italic;"># Requires mod_expires to be enabled.</span>
&nbsp;
  <span style="color: #adadad; font-style: italic;"># Enable expirations.</span>
  <span style="color: #00007f;">ExpiresActive</span> <span style="color: #0000ff;">On</span>
&nbsp;
  <span style="color: #adadad; font-style: italic;"># Cache all files for 2 weeks after access (A).</span>
  <span style="color: #00007f;">ExpiresDefault</span> A1209600
&nbsp;
  <span style="color: #adadad; font-style: italic;"># Do not cache dynamically generated pages.</span>
  <span style="color: #00007f;">ExpiresByType</span> text/html A1
&nbsp;
<span style="color: #adadad; font-style: italic;"># Various rewrite rules.</span>
&nbsp;
  <span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">on</span>
&nbsp;
  <span style="color: #adadad; font-style: italic;"># If your site can be accessed both with and without the 'www.' prefix, you</span>
  <span style="color: #adadad; font-style: italic;"># can use one of the following settings to redirect users to your preferred</span>
  <span style="color: #adadad; font-style: italic;"># URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:</span>
  <span style="color: #adadad; font-style: italic;">#</span>
  <span style="color: #adadad; font-style: italic;"># To redirect all users to access the site WITH the 'www.' prefix,</span>
  <span style="color: #adadad; font-style: italic;"># (http://example.com/... will be redirected to http://www.example.com/...)</span>
  <span style="color: #adadad; font-style: italic;"># adapt and uncomment the following:</span>
  <span style="color: #adadad; font-style: italic;"># RewriteCond %{HTTP_HOST} ^example\.com$ [NC]</span>
  <span style="color: #adadad; font-style: italic;"># RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]</span>
  <span style="color: #adadad; font-style: italic;">#</span>
  <span style="color: #adadad; font-style: italic;"># To redirect all users to access the site WITHOUT the 'www.' prefix,</span>
  <span style="color: #adadad; font-style: italic;"># (http://www.example.com/... will be redirected to http://example.com/...)</span>
  <span style="color: #adadad; font-style: italic;"># uncomment and adapt the following:</span>
  <span style="color: #adadad; font-style: italic;"># RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]</span>
  <span style="color: #adadad; font-style: italic;"># RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]</span>
&nbsp;
  <span style="color: #adadad; font-style: italic;"># Modify the RewriteBase if you are using Drupal in a subdirectory or in a</span>
  <span style="color: #adadad; font-style: italic;"># VirtualDocumentRoot and the rewrite rules are not working properly.</span>
  <span style="color: #adadad; font-style: italic;"># For example if your site is at http://example.com/drupal uncomment and</span>
  <span style="color: #adadad; font-style: italic;"># modify the following line:</span>
  <span style="color: #adadad; font-style: italic;"># RewriteBase /drupal</span>
  <span style="color: #adadad; font-style: italic;">#</span>
  <span style="color: #adadad; font-style: italic;"># If your site is running in a VirtualDocumentRoot at http://example.com/,</span>
  <span style="color: #adadad; font-style: italic;"># uncomment the following line:</span>
  <span style="color: #adadad; font-style: italic;"># RewriteBase /</span>
&nbsp;
  <span style="color: #adadad; font-style: italic;"># Rewrite URLs of the form 'x' to the form 'index.php?q=x'.</span>
  <span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-f
  <span style="color: #00007f;">RewriteCond</span> %{REQUEST_FILENAME} !-d
  <span style="color: #00007f;">RewriteCond</span> %{REQUEST_URI} !=/favicon.ico
  <span style="color: #00007f;">RewriteRule</span> ^(.*)$ index.php?q=$<span style="color: #ff0000;">1</span> [L,QSA]
&nbsp;
<span style="color: #adadad; font-style: italic;"># $Id: .htaccess,v 1.90.2.3 2008/12/10 20:04:08 goba Exp $</span></pre></td></tr></table></div>

<h4>register_globals</h4>
<p>En cas de problème avec les  register_globals sur Online vous avez deux possibilitées :</p>
<ul>
<li> Si vous avez une offre &gt; M : vous pouvez mettre un php.ini a à la racine (Voir la faq ue le site d&#8217;online : <a href="http://faq.online.net/hebergement-web/php#configurer_php" target="_blank">configurer php</a>. Mettre <strong>register_globals = Off</strong></li>
<li> modifier le fichier &#8216;index.php&#8217; à la racine du site en ajoutant ini_set(&#8216;register_globals&#8217;,&#8217;0&#8242;); au début du fichier.</li>
</ul>
<p>voici le contenu de mon index.php :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p69code10'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6910"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="code" id="p69code10"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//MAJ ONLINE.NET</span>
<a href="http://www.php.net/ini_set"><span style="color: #990000;">ini_set</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_globals'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
 * The routines here dispatch control to the appropriate handler, which then
 * prints the appropriate page.
 *
 * All Drupal code is released under the GNU General Public License.
 * See COPYRIGHT.txt and LICENSE.txt.
 */</span>
&nbsp;
<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'./includes/bootstrap.inc'</span><span style="color: #339933;">;</span>
drupal_bootstrap<span style="color: #009900;">&#40;</span>DRUPAL_BOOTSTRAP_FULL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$return</span> <span style="color: #339933;">=</span> menu_execute_active_handler<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Menu status constants are integers; page content is a string.</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_int"><span style="color: #990000;">is_int</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$return</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$return</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">case</span> MENU_NOT_FOUND<span style="color: #339933;">:</span>
      drupal_not_found<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">case</span> MENU_ACCESS_DENIED<span style="color: #339933;">:</span>
      drupal_access_denied<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">case</span> MENU_SITE_OFFLINE<span style="color: #339933;">:</span>
      drupal_site_offline<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/isset"><span style="color: #990000;">isset</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$return</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #666666; font-style: italic;">// Print any value (including an empty string) except NULL or undefined:</span>
  <span style="color: #b1b100;">print</span> theme<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$return</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
drupal_page_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h4>Problèmes avec les images ou les fichiers téléchargés</h4>
<p>En cas de problème avec les  images ou les fichiers  téléchargés : supprimer le fichier htaccess qui se trouve dans  /votre repertoire/sites/votre site/files/.htaccess</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lesbazeilles.com/2009/09/installer-drupal-sur-online/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/11 queries in 0.506 seconds using disk: basic
Object Caching 428/448 objects using disk: basic

Served from: www.lesbazeilles.com @ 2012-02-12 03:35:52 -->
