How to Install multipul versions of php using phpenv

Vote 0 Votes

How to Install multipul versions of php using phpenv


Tested in Cent7 + php 5.4.45(default)
Adding php 7 using phpenv.

git clone git:// ~/.phpenv/plugins/php-build
echo 'export PATH="$HOME/.phpenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(phpenv init -)"' >> ~/.bashrc
exec $SHELL -l
phpenv install -l
phpenv install 7.1.3

--> Build error

- Install nesessary packages

yum install openssl-devel
yum install libcurl
yum install curl-devel 
yum --enablerepo=epel install libmcrypt

- Install mcrypt

yum install gcc-c++
tar zxvf re2c-0.16.tar.gz 
cd re2c-0.16/
make install

yum install --enablerepo epel libmcrypt-devel
yum install readline-devel
yum install libtidy
yum install --enablerepo epel libtidy
yum install --enablerepo epel libtidy-devel
yum install libxslt
yum install libxslt-devel
yum install autoconf
yum install automake
phpenv install 7.1.3

--> Success

# phpenv versions


Leave a comment

About this Entry

This page contains a single entry by gamzatti published on March 24, 2017 6:54 AM.

How to implement RSS Server using Tiny Tiny RSS was the previous entry in this blog.

How to enable remote debugging of J2EE application running on Tomcat is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.