Created
March 6, 2012 13:28
-
-
Save alkavan/1986274 to your computer and use it in GitHub Desktop.
Compile PHP (on CentOS)
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 | |
# This is my compile command | |
# works good for me with PHP 5.3/5.4 | |
# You might need this packages too (CentOS 5/6 tested) | |
#sudo yum install libxml2-devel.x86_64 | |
#sudo yum install httpd-devel.x86_64 | |
#sudo yum install openssl-devel.x86_64 | |
#sudo yum install bzip2-devel.x86_64 | |
#sudo yum install libcurl-devel.x86_64 | |
#sudo yum install libjpeg-devel.x86_64 | |
#sudo yum install libpng-devel.x86_64 | |
#sudo yum install freetype-devel.x86_64 | |
#sudo yum install libmcrypt-devel.x86_64 | |
#sudo yum install libc-client-devel.x86_64 | |
# now comiple it all ... | |
make clean | |
./configure \ | |
--with-apxs2=/usr/sbin/apxs \ | |
--enable-cli \ | |
--enable-pdo \ | |
--enable-mbstring \ | |
--enable-mbregex \ | |
--enable-ftp \ | |
--enable-gd-native-ttf \ | |
--enable-sockets \ | |
--enable-maintainer-zts \ | |
--with-pdo-mysql \ | |
--with-mysql \ | |
--with-curl \ | |
--with-openssl \ | |
--with-iconv \ | |
--with-bz2 \ | |
--with-zlib \ | |
--with-gd \ | |
--with-jpeg-dir \ | |
--with-png-dir \ | |
--with-freetype-dir \ | |
--with-ldap \ | |
--with-mcrypt \ | |
--with-xmlrpc \ | |
--with-imap \ | |
--with-imap-ssl \ | |
--with-kerberos \ | |
--with-libdir=lib64 \ | |
--with-config-file-path=/etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment