Skip to content

Instantly share code, notes, and snippets.

@bahamut45
Last active March 7, 2018 10:55
Show Gist options
  • Save bahamut45/2930d767e8591e8c01bf0e41e406e4c9 to your computer and use it in GitHub Desktop.
Save bahamut45/2930d767e8591e8c01bf0e41e406e4c9 to your computer and use it in GitHub Desktop.
Manjaro PHP 5.6

Installation de php 7

  • pacin php php-apcu php-gd php-intl php-ldap php-mcrypt php-tidy xdebug

Installation de phpenv

  • wget -qO- https://raw.githubusercontent.com/CHH/phpenv/master/bin/phpenv-install.sh | sh
  • Modifier votre bashrc ou zshrc comme indiqué

Installation de php-build

  • git clone git://github.com/php-build/php-build.git $HOME/.phpenv/plugins/php-build
  • phpenv rehash

Installation de phpenv-composer

  • git clone https://github.com/ngyuki/phpenv-composer.git $HOME/.phpenv/plugins/phpenv-composer
  • phpenv rehash

Ajouter la version 5.6.7 de php

  • phpenv install 5.6.7
  • ou avec des options de compilations
  • PHP_BUILD_CONFIGURE_OPTS="--enable-fileinfo --enable-hash --enable-json --with-bz2 --enable-ctype --with-iconv --with-gettext --with-mcrypt --with-gd --enable-calendar --enable-cli --enable-cgi --with-ldap --enable-intl --enable-pdo --with-snmp" phpenv install 5.6.7

Installation de composer dans la version 5.6.7

  • phpenv global 5.6.7
  • composer --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment