User talk:Pennyquick.com

blog.pennyquick.com forum.pennyquick.com shop.pennyquick.com

^^^ using a customized php with eAccelerator ...

Note : Amend the **** found inside the script with your username. Note : Amend the DOMAIN = "pennyquick.com" to reflect your domain.

Begin Script Below
set -e export DOMAIN="pennyquick.com" SRCDIR=${HOME}/source INSTALLDIR=${HOME}/php DISTDIR=${HOME}/dist php="php-5.1.4" LIBICONV="libiconv-1.10" LIBMCRYPT="libmcrypt-2.5.7" LIBXML2="libxml2-2.6.26" LIBXSLT="libxslt-1.1.17" MHASH="mhash-0.9.6" ZLIB="zlib-1.2.3" CURL="curl-7.15.4" LIBIDN="libidn-0.6.3" CCLIENT="c-client" CCLIENT_DIR="imap-2004g" # Another pest! M4="m4-1.4.4" LIBTOOL="libtool-1.5.22" AUTOCONF="autoconf-2.59" AUTOMAKE="automake-1.9.6" PKGCONFIG="pkg-config-0.20" LIBEVENT="libevent-1.1a" MEMCACHE="memcache-2.0.4" APC="APC-3.0.10" PHPFEATURES="--prefix=${INSTALLDIR} \ --with-config-file-path=${INSTALLDIR}/etc/php/${DOMAIN} \ --enable-force-cgi-redirect \  --with-xml \  --with-libxml-dir=${INSTALLDIR} \ --enable-soap \  --with-openssl=/usr \ --with-mhash=${INSTALLDIR} \ --with-mcrypt=${INSTALLDIR} \ --with-zlib-dir=${INSTALLDIR} \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-gd \ --enable-gd-native-ttf \ --enable-ftp \ --with-exif \ --enable-sockets \ --enable-wddx \ --with-iconv=${INSTALLDIR} \ --enable-sqlite-utf8 \ --enable-calendar \ --with-curl=${INSTALLDIR} \ --enable-mbstring \ --enable-mbregex \ --with-mysql=/usr \ --with-mysqli \ --with-pear-dir=/home/****/pear \ --with-gettext \ --with-imap=${INSTALLDIR} \ --with-imap-ssl=/usr \ --enable-fastcgi \ --enable-trans-sid \ --enable-bcmath \ --with-ttf=/usr \ --with-freetype-dir=/usr \ --enable-exif" export PATH=${INSTALLDIR}/bin:$PATH mkdir -p ${SRCDIR} mkdir -p ${INSTALLDIR} mkdir -p ${DISTDIR} cd ${DISTDIR} wget -c http://us2.php.net/distributions/${php}.tar.gz wget -c http://ftp.gnu.org/pub/gnu/libiconv/${LIBICONV}.tar.gz wget -c http://easynews.dl.sourceforge.net/sourceforge/mcrypt/${LIBMCRYPT}.tar.gz wget -c http://ftp.acc.umu.se/pub/GNOME/sources/libxml2/2.6/${LIBXML2}.tar.gz wget -c http://ftp.acc.umu.se/pub/GNOME/sources/libxslt/1.1/${LIBXSLT}.tar.gz wget -c http://easynews.dl.sourceforge.net/sourceforge/mhash/${MHASH}.tar.gz wget -c http://www.zlib.net/${ZLIB}.tar.gz wget -c http://curl.haxx.se/download/${CURL}.tar.gz wget -c ftp://alpha.gnu.org/pub/gnu/libidn/${LIBIDN}.tar.gz wget -c ftp://ftp.cac.washington.edu/imap/${CCLIENT}.tar.Z wget -c http://ftp.gnu.org/gnu/m4/${M4}.tar.gz wget -c http://ftp.gnu.org/gnu/libtool/${LIBTOOL}.tar.gz wget -c http://ftp.gnu.org/gnu/autoconf/${AUTOCONF}.tar.gz wget -c http://ftp.gnu.org/gnu/automake/${AUTOMAKE}.tar.gz wget -c http://pecl.php.net/get/${MEMCACHE}.tgz wget -c http://www.monkey.org/~provos/${LIBEVENT}.tar.gz wget -c http://pecl.php.net/get/${APC}.tgz wget -c http://pkgconfig.freedesktop.org/releases/${PKGCONFIG}.tar.gz cd ${SRCDIR} tar xzf ${DISTDIR}/${php}.tar.gz tar xzf ${DISTDIR}/${LIBICONV}.tar.gz tar xzf ${DISTDIR}/${LIBMCRYPT}.tar.gz tar xzf ${DISTDIR}/${LIBXML2}.tar.gz tar xzf ${DISTDIR}/${LIBXSLT}.tar.gz tar xzf ${DISTDIR}/${MHASH}.tar.gz tar xzf ${DISTDIR}/${ZLIB}.tar.gz tar xzf ${DISTDIR}/${CURL}.tar.gz tar xzf ${DISTDIR}/${LIBIDN}.tar.gz uncompress -cd ${DISTDIR}/${CCLIENT}.tar.Z |tar x tar xzf ${DISTDIR}/${M4}.tar.gz tar xzf ${DISTDIR}/${LIBTOOL}.tar.gz tar xzf ${DISTDIR}/${AUTOCONF}.tar.gz tar xzf ${DISTDIR}/${AUTOMAKE}.tar.gz tar xzf ${DISTDIR}/${LIBEVENT}.tar.gz tar xzf ${DISTDIR}/${MEMCACHE}.tgz tar xzf ${DISTDIR}/${APC}.tgz tar xzf ${DISTDIR}/${PKGCONFIG}.tar.gz =# begin custom installation cd ${SRCDIR}/${M4} sh ./configure --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${LIBTOOL} sh ./configure --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${AUTOCONF} sh ./configure --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${AUTOMAKE} sh ./configure --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${PKGCONFIG} sh ./configure --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${LIBICONV} sh ./configure --enable-extra-encodings --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${LIBXML2} sh ./configure --with-iconv=${INSTALLDIR} --prefix=${INSTALLDIR} =# make clean make make install cd ${SRCDIR}/${LIBXSLT} ./configure --prefix=${INSTALLDIR} \ --with-libxml-prefix=${INSTALLDIR} \ --with-libxml-include-prefix=${INSTALLDIR}/include/ \ --with-libxml-libs-prefix=${INSTALLDIR}/lib/ make make install cd ${SRCDIR}/${ZLIB} sh ./configure --shared --prefix=${INSTALLDIR} =# make clean make make install cd ${SRCDIR}/${LIBMCRYPT} sh ./configure --disable-posix-threads --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${LIBMCRYPT}/libltdl sh ./configure --prefix=${INSTALLDIR} --enable-ltdl-install make make install cd ${SRCDIR}/${MHASH} sh ./configure --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${LIBIDN} sh ./configure --with-iconv-prefix=${INSTALLDIR} --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${CURL} sh ./configure --with-ssl=${INSTALLDIR} --with-zlib=${INSTALLDIR} \ --with-libidn=${INSTALLDIR} --enable-ipv6 --enable-cookies \ --enable-crypto-auth --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${CCLIENT_DIR} make ldb =# Install targets are for wusses! cp c-client/c-client.a ${INSTALLDIR}/lib/libc-client.a cp c-client/*.h ${INSTALLDIR}/include cd ${SRCDIR}/${php} sh ./configure ${PHPFEATURES} make make install cd ${SRCDIR}/${LIBEVENT} sh ./configure --prefix=${INSTALLDIR} make make install cd ${SRCDIR}/${MEMCACHE} /home/****/php/bin/phpize sh ./configure --prefix=${INSTALLDIR} --enable-memcache --with-php-config=/home/****/php/bin/php-config
 * #!/bin/bash
 * # Abort on any errors
 * # The domain in which to install the PHP CGI script.
 * # Where do you want all this stuff built? I'd recommend picking a local
 * # filesystem.
 * # ***Don't pick a directory that already exists!*** We clean up after
 * # ourselves at the end!
 * # And where should it be installed?
 * # Set DISTDIR to somewhere persistent, if you plan to muck around with this
 * # script and run it several times!
 * # Update version information here.
 * # What PHP features do you want enabled?
 * # end of user-editable bits. Hopefully!
 * # Push the install dir's bin directory into the path
 * #setup directories
 * # Get all the required packages
 * # Unpack them all
 * # Build them in the required order to satisfy dependencies.
 * #m4 - MUST BE FIRST
 * #libtool - MUST BE SECOND
 * #autoconf - MUST BE THIRD
 * #automake - MUST BE FOURTH
 * #pkg-config
 * #libiconv
 * # make clean
 * #libxml2
 * #libxslt
 * # make clean
 * #zlib
 * #libmcrypt
 * # make clean
 * #libmcrypt lltdl issue!!
 * #mhash
 * # make clean
 * #libidn
 * # make clean
 * #cURL
 * # make clean
 * # c-client
 * #PHP 5.1.4
 * # make clean
 * #libevent
 * #make clean
 * #memcache

cd ${SRCDIR}/${APC} /home/****/php/bin/phpize sh ./configure --prefix=${INSTALLDIR} --enable-apc --enable-apc-mmap --with-php-config=/home/****/php/bin/php-config make make install mkdir -p ${INSTALLDIR}/etc/php/${DOMAIN}; cp ${SRCDIR}/${php}/php.ini-dist ${INSTALLDIR}/etc/php/${DOMAIN}/php.ini mkdir -p ${HOME}/${DOMAIN}/cgi-bin chmod 0755 ${HOME}/${DOMAIN}/cgi-bin cp ${INSTALLDIR}/bin/php ${HOME}/${DOMAIN}/cgi-bin/php.cgi echo -- INSTALL COMPLETE! --
 * #APC
 * #copy config file
 * #copy PHP CGI

Comments

 * I just noticed this page after doing a search on 'eAccelerator', and just want to mention that APC, though very similar, is NOT eAccelerator. The instructions above are clearly for the installation and use of APC+memcache and not eAccelerator. Small detail I know, but just thought I'd point it out ;) -- Mousee 10:37, 19 April 2007 (PDT)