Kompilacja PHP5-LiteSpeed na systemie Debian
Posted on Maj 10th, 2009 by Konrad Fierek
Na początku trzeba zainstalować troszkę pomocniczych, developerskich bibliotek.
apt-get install autoconf bison bzip2 curl g++ gcc libbz2-dev libc-client-dev libcurl4-openssl-dev libgd2-xpm libgd2-xpm-dev libgdbm-dev libldap2-dev libmcrypt-dev libmhash-dev libmysqlclient15-dev libpam-dev libqdbm-dev libsnmp-dev libxml2-dev libxslt-dev libzip-dev make mcrypt openssl patch postgresql-server-dev-8.3 unixodbc unixodbc-dev wget
Potem w konsoli LiteSpeeda opcja kompilacji PHP.
Przykładowe parametry kompilacji:
--with-pear --with-pdo-sqlite --with-pdo-mysql=/usr/bin/mysql_config --with-pdo-pgsql=/usr/lib/postgresql/bin/pg_config --with-pdo-odbc=unixODBC,/usr --with-mysql=/usr/bin/mysql_config --with-mysqli=/usr/bin/mysql_config --with-pgsql=/usr/lib/postgresql/bin/pg_config --with-unixODBc=/usr --with-gd --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-freetype-dir=/usr/lib --with-ttf --with-xpm-dir=/usr/lib --enable-exif --enable-bcmath --enable-calendar --enable-fastcgi --enable-ftp --enable-magic-quotes --enable-mbstring --enable-memory-limit --enable-shmop --enable-sockets --enable-soap --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-wddx --enable-zip --disable-posix --disable-debug --with-bz2 --with-curl --with-curl-dir=/usr/local/lib --with-gdbm --with-gettext --with-iconv --with-imap --with-imap-ssl --with-kerberos --with-litespeed --with-ldap --with-mcrypt --with-mhash --with-mime-magic --with-openssl --with-snmp --with-xml --with-xsl --with-zlib