Skip to content

Instantly share code, notes, and snippets.

@veapon
Created March 5, 2015 09:01
Show Gist options
  • Save veapon/41df0c68e963e88f8740 to your computer and use it in GitHub Desktop.
Save veapon/41df0c68e963e88f8740 to your computer and use it in GitHub Desktop.
centos-php-compile
#!/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