Skip to content

Instantly share code, notes, and snippets.

@nocoo
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save nocoo/10114480 to your computer and use it in GitHub Desktop.

Select an option

Save nocoo/10114480 to your computer and use it in GitHub Desktop.
Manual install PHP 5.4.27, with configure script
# Install dependency libs of PHP5
aptitude build-dep php5
# Add this one
aptitude install libmcrypt-dev
# Run configure before compile
./configure --prefix=/usr/local/php54 \
--with-config-file-path=/etc/php54 \
--with-config-file-scan-dir=/etc/php54/conf.d \
--without-t1lib \
--disable-short-tags \
--enable-pcntl \
--with-tsrm-pthreads \
--with-mysqli \
--with-mysql \
--with-pdo-mysql \
--with-zlib \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--enable-exif \
--enable-ftp \
--enable-fpm \
--with-gd \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-iconv-dir \
--with-gettext \
--enable-mbstring \
--with-mcrypt \
--with-mhash \
--with-pspell \
--enable-soap \
--enable-sockets \
--enable-wddx \
--with-xmlrpc \
--with-xsl \
--enable-zip \
--with-kerberos \
--with-tidy \
--with-curl \
--with-curlwrappers \
--disable-fileinfo
# If your VPS doesn't have 1G+ plus memory, add "--disable-fileinfo" to configure
# link binaries
cd /usr/sbin
ln -s /usr/local/php54/bin/* ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment