Last active
August 29, 2015 13:56
-
-
Save tkuchiki/9107358 to your computer and use it in GitHub Desktop.
install phpenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export PHPENV_ROOT=/path/to/.phpenv | |
export PHPENV_ROOT=$HOME | |
echo "export PHPENV_ROOT=${PHPENV_ROOT}" >> $HOME/.bashrc | |
curl -L https://raw2.github.com/CHH/phpenv/master/bin/phpenv-install.sh | bash | grep -E "^(export|eval)" >> $HOME/.bashrc | |
# update phpenv | |
#curl -L https://raw2.github.com/CHH/phpenv/master/bin/phpenv-install.sh | UPDATE=yes bash | grep -E "^(export|eval)" >> $HOME/.bashrc | |
sed -i -e "s|PATH=\"$PHPENV_ROOT|PATH=\"\$PHPENV_ROOT|g" $HOME/.bashrc | |
## BSD | |
# sed -i "" -e "s|PATH=\"$PHPENV_ROOT|PATH=\"\$PHPENV_ROOT|g" $HOME/.bashrc | |
. $HOME/.bashrc | |
# install php-build | |
TMP_PREFIX=$PREFIX | |
PREFIX=/usr/local | |
git clone https://github.com/CHH/php-build.git | |
cd php-build | |
./install.sh | |
PREFIX=$TMP_PREFIX | |
unset TMP_PREFIX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install epel repo | |
# https://gist.github.com/tkuchiki/7368183 | |
yum install -y gcc gcc-c++ make libxml2-devel libcurl-devel libjpeg-devel libpng-devel libmcrypt-devel libtidy-devel libxslt-devel readline-devel httpd httpd-devel | |
php-build 5.5.9 $PHPENV_ROOT/versions/5.5.9 | |
#phpenv local 5.5.9 | |
phpenv global 5.5.9 | |
phpenv rehash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--without-pear | |
--with-gd | |
--enable-sockets | |
--with-jpeg-dir=/usr | |
--with-png-dir=/usr | |
--enable-exif | |
--enable-zip | |
--with-zlib | |
--with-zlib-dir=/usr | |
--with-kerberos | |
--with-openssl | |
--with-mcrypt=/usr | |
--enable-soap | |
--enable-xmlreader | |
--with-xsl | |
--enable-ftp | |
--enable-cgi | |
--with-curl=/usr | |
--with-tidy | |
--with-xmlrpc | |
--enable-sysvsem | |
--enable-sysvshm | |
--enable-shmop | |
--with-mysql=mysqlnd | |
--with-mysqli=mysqlnd | |
--with-pdo-mysql=mysqlnd | |
--with-pdo-sqlite | |
--enable-pcntl | |
--with-readline | |
--enable-mbstring | |
--disable-debug | |
--enable-fpm | |
--enable-bcmath | |
--with-apxs2=/usr/sbin/apxs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment