Dynamic-Mess.com


"The world is a dynamic mess of jiggling things..."

Installer PHP 7 et phpMyAdmin sous Debian

Article posté le 08-06-2016 dans la catégorie PHP

Attention, le contenu cet article est peut-être obsolète !

Comment installer PHP 7 sous Debian

Installer PHP7

Pour l'instant, pour installer PHP7, il faut utiliser un dépôt PPA (dépôt non officiel).

Voici les commandes à utiliser pour passer à cette version de PHP7.

 

apt-get update && apt-get upgrade && apt-get dist-upgrade -y

apt-get -q -y  install python-software-properties

apt-get install software-properties-common
# AJOUT DU PACKAGE NON OFFICIEL
# NOTE: pour le retirer: add-apt-repository --remove ppa:ondrej/php
add-apt-repository ppa:ondrej/php
apt-get -q -y  update
apt-get -q -y  purge php5-fpm
apt-get -q -y  install php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-fpm php7.0-curl php7.0-gd php7.0-mysql php7.0-bz2

Ensuite redémarrer Apache :

/etc/init.d/apache2 restart

Puis installez quelques extensions :

apt-get -q -y  install php-xml
apt-get -q -y  install php-mcrypt
apt-get -q -y  install php-intl
apt-get -q -y  install php-mbstring
apt-get -q -y  install php-zip

Et redémarrez Apache, encore.

A présent, vérifier que cette commande fonctionne en vous retournant bien la version de PHP installée:

php -v

Installer phpMyAdmin

Il faut tout d'abord le télécharger, le décompresser et le déplacer dans dans /var/www/html

wget https://files.phpmyadmin.net/phpMyAdmin/4.5.3.1/phpMyAdmin-4.5.3.1-all-languages.zip -P /var/www/html/
apt-get -q -y  install unzip
unzip /var/www/html/phpMyAdmin-4.5.3.1-all-languages.zip -d /var/www/html/
mv /var/www/html/phpMyAdmin-4.5.3.1-all-languages/ phpmyadmin/

Enfin, achever la configuration :

cp /var/www/html/phpmyadmin/config.sample.inc.php /var/www/html/phpmyadmin/config.inc.php
/etc/init.d/apache2 restart

Cet article vous a plu? Découvrez d'autres articles :


comments powered by Disqus