Jump to content

Install'n'setup Litespeed


Xyz
 Share

Recommended Posts

Din plictiseala, m-am gandit sa instalez litespeed ( e ca apache dar mult mai bun: http://litespeedtech.com/litespeed-vs-apache.html pentru ca are anti-ddos, si multe altele..)

Step 1.

Ne logam in vps.

Yl49O.png

Step 2.

yum -y install gcc gcc-c++ glibc make automake GeoIP GeoIP-devel GeoIP-data fontconfig fontconfig-devel gd gd-devel pam pam-devel openldap openldap-devel libXpm libXpm-devel libtool libaio libaio-devel libtool-ltdl libtool-ltdl-devel libmcrypt libmcrypt-devel mhash mhash-devel unixODBC unixODBC-devel zip unzip nano perl openssl openssl-devel pcre pcre-devel bzip2 bzip2-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel gmp gmp-devel aspell aspell-devel

yum -y update

knGPy.png

Step 3.

Dezinstalam apache.

yum -y remove httpd

GbBlz.png

Step 4.

instalam curl, gnupg, libxslt etc.. etc..

yum -y install gnupg curl curl-devel libidn libidn-devel libc-client libc-client-devel.`uname -i` libxslt tidy libtidy libtidy-devel

W9SjZ.png

Step 5.

Instalam Litespeed.

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz
tar zxvf autoconf-2.13.tar.gz
cd autoconf-2.13/
./configure
make
make install
cd ..

wget http://www.litespeedtech.com/packages/4.0/lsws-4.0.20-std-i386-linux.tar.gz
tar -zxvf lsws-4.0.20-std-i386-linux.tar.gz
cd lsws-4.0.20
chmod +x install.sh
./install.sh

Le scriem pe rand..

dupa o sa ne apara ceva de genul --more x%--

apasam space pana ce ne apare"Do you agree with above license?"

o sa scriem Yes

1pJYA.png

Dupa asta, va descurcati.. adica, e mura-n gura.

Dupa ce-ati terminat adica cand o sa va apara ceva de genul:

oMkCe.png

intrati pe IP:7080

va logati cu userul/parola aleasa aici (Dqvbq.png)

 

 

vW1v0.png

O sa aveti ceva asemanator ca mai sus ^

Click pe Actions>Compile PHP

TsbSZ.png

Apoi alegem o versiune de PHP, eu am ales 5.2.x, de ce? pentru ca 5.3.x a suferit multe schimbari.

hKyU1.png

Click pe Next.

Debifam tot.

La Configure Parameters stergem tot si dam cu paste:

--prefix=/lsphp5 --with-litespeed --enable-cli --with-mcrypt --enable-mbstring --with-openssl --with-mysql=/usr/bin --with-mysqli --with-mysql-sock=/var/lib/mysql/mysql.sock --with-pdo-mysql --with-gd --with-zlib --with-jpeg-dir=/usr/lib64 --with-png-dir=/usr/lib64 --with-png --with-jpeg --with-gmp --with-sqlite --enable-pdo --with-libdir=lib64 --with-xpm-dir=/usr/lib64 --with-freetype-dir=/usr/include/freetype2 --with-ttf=/usr/include/freetype2 --libdir=/usr/lib64 --enable-gd-native-ttf --enable-fileinfo --disable-debug --with-pic --with-bz2 --with-curl --with-curlwrappers --without-gdbm --with-gettext --with-iconv --with-pspell --with-pcre-regex --with-imap --with-imap-ssl=/usr/lib64 --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --disable-sysvsem --disable-sysvshm --disable-sysvmsg --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-kerberos --enable-ucd-snmp-hack --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --with-mime-magic --with-system-tzdata --with-odbc --enable-gd-jis-conv --enable-dom --disable-dba --enable-xmlreader --enable-xmlwriter --with-tidy  --with-xml --with-xmlrpc --with-xsl --enable-bcmath --enable-soap --enable-zip --enable-inline-optimization --with-mhash --enable-mbregex[/font][/color]
[color=#D3D3D3][font="Arial, Verdana, Helvetica, sans-serif"]

Iar acum click pe build.

O sa ne apara ceva de genu' Z17mV.png

Click pe Next.

Acum ne logam iar in VPS (daca a expirat sesiunea) si punem:

/usr/local/lsws/phpbuild/buildphp_manual_run.sh

Acum sa instalam pureFTP, sau ceva.

cd /opt
wget http://download.pureftpd.org/pure-ftpd/releases/pure-ftpd-1.0.30.tar.gz
tar xvf pure-ftpd-1.0.30.tar.gz
cd pure-ftpd-1.0.30
./configure
make install-strip
echo "/usr/local/sbin/pure-ftpd &" >> /etc/rc.d/rc.local

Si cam atat, daca am uitat ceva... post here.

a, da.. root-ul este in /usr/local/lsws/DEFAULT/html

cd /usr/local/lsws/DEFAULT/html

si intr-un final, modificam index.html.

anP6L.png

Daca n-ati inteles ceva, puteti sa-mi dati PM, nu va supar sau mananc. =)

P.S. Scuze de greseli daca sunt..

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.