PHP install
I am trying to build a dev machine to be installed as close as possible to a production machine that someone else at our hosting site built.
here are the istructions that I have.
The first thing is getting the server with the correct modules. Running
apt-get install autotools-dev comerr-dev freetds-dev libaspell-dev libbsd-dev libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libdb4.8-dev libedit-dev libenchant-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgcrypt11-dev libgd2-xpm-dev libglib2.0-dev libgmp3-dev libgpg-error-dev libice-dev libicu-dev libidn11-dev libjpeg62-dev libkrb5-dev libldap2-dev libltdl-dev libmcrypt-dev libmhash-dev libmysqlclient-dev libncurses5-dev libpam0g-dev libpcre3-dev libpng12-dev libpq-dev libpspell-dev libpthread-stubs0-dev librecode-dev libsasl2-dev libsm-dev libsnmp-dev libsqlite0-dev libssh2-1-dev libsqlite3-dev libssl-dev libstdc++6-4.4-dev libt1-dev libtidy-dev libwrap0-dev libx11-dev libxau-dev libxaw7-dev libxcb1-dev libxdmcp-dev libxext-dev libxml2-dev libxmltok1-dev libxmu-dev libxpm-dev libxslt1-dev libxt-dev
will get the server up to the point needed. Then running apt-get upgrade
Building php will be done in litespeed with the options below.
'--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-mysql' '--with-mcrypt' '--with-curl' '--with-freetype-dir=/usr/include' '--with-png-dir=/usr/include' '--with-xpm-dir=/usr/include' '--enable-gd-native-ttf' '--with-t1lib=/usr/include' '--with-jpeg-dir=/usr/include' '--with-litespeed' '--with-pdo-mysql' '--enable-soap' '--with-openssl' '--enable-suhosin'
After that point, running
/usr/local/lsws/lsphp5/bin/pecl install -f ssh2
Then uncomment extension=ssh2.so from within /usr/local/lsws/lsphp5/lib/php.ini
|