Вы находитесь на странице: 1из 2

1-Install needed programs

yum -y install patch gcc glibc libstdc++ gcc-c++ binutils libtool autoconf make
2- Uninstall Apache
yum remove httpd
3- Download Ligtespeed
wget http://www.litespeedtech.com/packages/4.0/lsws-4.2.7-std-i386-linux.tar.gz
4- Untar it
tar -zxvf lsws-4.2.7-std-i386-linux.tar.gz
5- Install it
cd lsws-4.2.7
sudo ./install.sh
6- Read License and use Space to go to the next page tile reach to end of it. Th
en type "Yes" and press "Enter".
5- Select a directory for LiteSpeed installation. The default directory is "[/us
r/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 po
rt 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 pressi
ng "Enter." Wait for the server to completely restart, and again enter "Y" at th
e 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 mhas
h-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-dev
el 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.r
pm
And then also add this
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
And then install the libmcrypt
yum --enablerepo=remi,remi-test install libmcrypt libmcrypt-devel
For Update PHP login to webcosule at port 7080.
Under Action menu click on Complie PHP with LSAPI
Click next in front of php 5.5.9
In next page just copy following configuration to "Configure Parameters"and clic
k 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-ke
rberos --with-mcrypt --with-mysqli --with-openssl --with-pic --with-png-dir --wi
th-zlib --with-pcre-regex --with-gd --enable-shmop --enable-track-vars --enable-
sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstrin
g --with-iconv
or
--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-ke
rberos --with-mcrypt --with-mysqli --with-openssl --with-pic --with-png-dir --wi
th-zlib --with-pcre-regex --with-gd --enable-shmop --enable-track-vars --enable-
sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstrin
g --with-iconv --enable-exif --enable-ucd-snmp-hack --enable-xml --libdir=/usr/l
ib64 --with-libdir=lib64 --exec-prefix=/usr --with-exec-dir=/usr/bin --with-free
type-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

Вам также может понравиться