This should be short, and easy. First, the extensions we need:
- php-mysql
- php-bcmath
- php-gd
- php-magickwand
- php-mbstring
- php-mcrypt
- php-pear-Mail*
- php-soap
- php-xml
- php-xmlrpc
Now the configuration options:
./configure \ --build=x86_64-redhat-linux-gnu \ --host=x86_64-redhat-linux-gnu \ --target=x86_64-redhat-linux-gnu \ --program-prefix= \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib64 \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --sharedstatedir=/var/lib \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --cache-file=../config.cache \ --with-libdir=lib64 \ --with-config-file-path=/etc \ --with-config-file-scan-dir=/etc/php.d \ --disable-debug \ --with-pic \ --disable-rpath \ --with-pear \ --with-bz2 \ --with-freetype-dir=/usr \ --with-png-dir=/usr \ --with-xpm-dir=/usr \ --enable-gd-native-ttf \ --without-gdbm \ --with-gettext \ --with-gmp \ --with-iconv \ --with-jpeg-dir=/usr \ --with-openssl \ --with-pcre-regex=/usr \ --with-zlib \ --with-layout=GNU \ --enable-exif \ --enable-ftp \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-sysvmsg \ --with-kerberos \ --enable-shmop \ --enable-calendar \ --with-libxml-dir=/usr \ --enable-xml \ --with-apxs2=/usr/sbin/apxs \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --enable-soap \ --with-xmlrpc \ --with-tidy=/usr \ --with-gd \ --enable-dom \ --disable-dba \ --without-unixODBC \ --enable-pdo \ --disable-xmlreader \ --disable-xmlwriter \ --disable-phar \ --enable-fileinfo \ --enable-json \ --without-pspell \ --disable-wddx \ --with-curl \ --disable-posix \ --disable-sysvmsg \ --disable-sysvshm \ --disable-sysvsem \ --enable-mbstring \ --enable-bcmath \ --with-mcrypt \ --with-freetype-dir=/usr \ --enable-opcache
Make and install:
sudo make && make install
In skipped make test
here for brevity. If you’re in with El Duderiono then you might want to spend the time to check your work. Production is not a land for the lazy.