Created
March 5, 2015 09:01
-
-
Save veapon/41df0c68e963e88f8740 to your computer and use it in GitHub Desktop.
centos-php-compile
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
#!/bin/bash | |
yum install -y libxml2-devel libcurl-devel libjpeg-devel libpng-devel freetype-devel libxslt-devel | |
mkdir -p /servers/php | |
./configure --prefix=/servers/php --with-curl --enable-mbstring --with-mcrypt=/usr/local --with-mysql=/servers/mysql --with-mysqli=/servers/mysql/bin/mysql_config --with-pdo-mysql=/servers/mysql --enable-fpm --with-fpm-user=nginx --with-fpm-group=nginx --enable-libxml --with-xsl --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib-dir --enable-opcache --with-openssl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment