Ver php et drupal - forcer ver php

rq pour drupal

Attention : certains modules drupal 6 marchent mal avec php 5.3

cf drupal.org/requierements

v drupal 6 drupal 7 drupal 8
MySQL   4.1 ou + v5.0.15 ou + avec PDO  
Apache 1.3 ou 2.0 1.3 ou 2.0  
php

5.2 mieux (4.4.0 ou+ requis)

core requires 16MB

5.3 mieux (5.2.5 requis)

core requires 32MB

 

à installer:

  • libapache2-mod-php5 (ok)
  • libapache2-mod-auth-mysql.   php5-mysql

change the MySQL root password    sudo dpkg-reconfigure mysql-server-5.1

Vérifier que apache ok dans /var/www avoir page index.html : <html><body><h1>It works!</h1></body></html>

php info contient : ouvrir ds firefox   /foo.php
<?php
phpinfo();
?>

Forcer Php 5.2 sous ubuntu

Voir la version de php installée: https://help.ubuntu.com/community/PinningHowto

pour Ubuntu 10.10 (Maverick) and 11.04 (Natty)

sudo apt-add-repository ppa:andphe/php && sudo apt-get update