Comment mettre register_globals sur off pour un site chez OVH

Catégories:

Je voudrais installer un site sous drupal 5.6 chez ovh (PHP 4.4.8).
Du fait d’un environnement incompatible à cause de register_globals régler sur on, je ne peux pas continuer l’installation.
J’ai essayé :
- de renommer l’index en index.php5 (http://drupalfr.org/node/2711)
- de mettre un fichier php.ini avec register_globals = off écrit à l’intérieur (http://drupal.org/node/210311)
- de modifier le fichier .htacess (http://www.drupalitalia.org/node/3554)

# PHP 4, Apache 1.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                off
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                off
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                off
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

Mais rien n’y fait…
Je commence à être désespéré !
Des suggestions ?
Merci d’avance de votre aide.

#

Je ne vois qu’une solution (ou bien 2).
Changer d’ISP ou abandonner Drupal…

#

Il faut mettre SetEnv REGISTER_GLOBALS 0 dans ton fichier htaccess.

#

Merci, ça marche !

#

Tu peux aussi mettre SetEnv PHP_VER 5 pour activer php5

#

Bonjour,

J’ai tout essayé, et fait comme vous le conseillez… mais y a rien à faire ! Le site «bug» avec le message que vous pouvez voir affiché ici :
500 Internal Server Error
Je suis en hébergement mutualisé chez OVH. Aurais-je raté une étape ?

Merci pour vos réponses !

#

La solution donnée plus haut (Il faut mettre SetEnv REGISTER_GLOBALS 0 dans ton fichier htaccess.) fonctionne parfaitement chez moi, qui suis chez OVH et en mutualisé.

.htaccess présent à la racine de ton site drupal bien entendu.

#

(souscription)

Drupalfr.org est aussi sur freenode à #drupal-fr

Amipicto communication et publicité

#

thaks ça marche nikel

Syndiquer le contenu