How To Install LiteSpeed Upgrade PHP

Embed Size (px)

DESCRIPTION

There is a simple step-by-step guide for installing litespeed and upgrade php to 5.* on Centos VPS.

Citation preview

1-Install needed programsyum -y install patch gcc glibc libstdc++ gcc-c++ binutils libtool autoconf make2- Uninstall Apacheyum remove httpd3- Download Ligtespeedwget http://www.litespeedtech.com/packages/4.0/lsws-4.2.7-std-i386-linux.tar.gz4- Untar ittar -zxvf lsws-4.2.7-std-i386-linux.tar.gz5- Install itcd lsws-4.2.7sudo ./install.sh6- Read License and use Space to go to the next page tile reach to end of it. Then type "Yes" and press "Enter".5- Select a directory for LiteSpeed installation. The default directory is "[/usr/local/lsws].6- Enter a username and password for the administrative console.7- Type an email address for the administrative user and press "Enter."8- Choose the HTTP traffic port number for LiteSpeed (80) and select a second port number for the administrative console. 9- Activate PHP script support if needed. (Y)10- Select the AWStats option if desired. (N)11- Enable automatic LiteSpeed activation by typing "Y" at the prompt and pressing "Enter." Wait for the server to completely restart, and again enter "Y" at the startup prompt. LiteSpeed will load.---------------------------------------------------------Part 2 Update PHP---------------------------------------------------------Install needed programs :yum -y install libxml2-devel openssl-devel bzip2-devel libcurl-devel db4-devel libjpeg-devel libpng-devel libXpm-devel \freetype-devel gmp-devel libc-client-devel openldap-devel libmcrypt-devel mhash-devel freetds-devel \zlib-devel mysql-devel ncurses-devel pcre-devel unixODBC-devel postgresql-devel sqlite-devel aspell-devel \readline-devel recode-devel net-snmp-devel libtidy-devel libxslt-devel t1lib-devel curl-devel*For CentOS6 32bit rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm*For CentOS6 64bit rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmAnd then also add thisrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpmAnd then install the libmcrypt yum --enablerepo=remi,remi-test install libmcrypt libmcrypt-develFor Update PHP login to webcosule at port 7080.Under Action menu click on Complie PHP with LSAPIClick next in front of php 5.5.9In next page just copy following configuration to "Configure Parameters"and click Compile."--disable-fileinfo --with-bz2 --enable-zip --with-curl --with-mysql --with-mysql-sock --with-sqlite --with-tidy --with-xpm-dir --enable-pdo --with-pdo-sqlite --with-pdo-mysql --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-soap --with-gettext --with-jpeg-dir=/usr --with-kerberos --with-mcrypt --with-mysqli --with-openssl --with-pic --with-png-dir --with-zlib --with-pcre-regex --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconvor--disable-fileinfo --with-bz2 --enable-zip --with-curl --with-mysql --with-mysql-sock --with-sqlite --with-tidy --with-xpm-dir --enable-pdo --with-pdo-sqlite --with-pdo-mysql --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-soap --with-gettext --with-jpeg-dir=/usr --with-kerberos --with-mcrypt --with-mysqli --with-openssl --with-pic --with-png-dir --with-zlib --with-pcre-regex --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --enable-exif --enable-ucd-snmp-hack --enable-xml --libdir=/usr/lib64 --with-libdir=lib64 --exec-prefix=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-pcre-regex=/usr --with-gmp --with-layout=GNU --with-system-tzdata --with-apxs2=/usr/sbin/apxs --with-libxml-dir=/usr"Waite for some seconds and thene click "Next" bottom on the next page top.Now login with putty as root and run this command to start PHP installation."/usr/local/lsws/phpbuild/buildphp_manual_run.sh"After done, restart.All done