CentOS Installation Openlitespeed Server environment steps detailed

Source: Internet
Author: User
Tags curl manual litespeed openssl
First, deploy the Openlitespeed server preparation work

According to the official view, we can be officially approved in the CentOS 5,6,7 version of the operation, but also a user in the Debian wheezy version of the test, where we will be based on official guidance in the CentOS environment deployment, The late Chiang Kai-shek in the alone in my favorite resource of small flexible Debian environment, at least we first see if we can succeed, experience how to further explore the performance.

Second, update system environment and system source

The code is as follows Copy Code

Yum Update

Here we need to update the CentOS system source to ensure that the system gets the latest source version.

Third, update the library and install the Openlitespeed version

# CentOS 5

The code is as follows Copy Code

RPM-IVH http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el5.noarch.rpm

# CentOS 6

The code is as follows Copy Code

RPM-IVH http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el6.noarch.rpm

#CentOS 7

The code is as follows Copy Code

RPM-IVH http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el7.noarch.rpm

We need to update the library and then install the latest version of Openlitespeed according to the distribution of the system.

The code is as follows Copy Code

Yum Install Openlitespeed-y

Then execute the above command to install the latest version of the Openlitespeed server environment, where the official latest stable version is installed, if we need to specify a different version of the installation to do so.

If it's not, then we need to install some more dependent packages:

The code is as follows Copy Code

Yum-y Install ncurses ncurses-devel glibc wget flex re2c Unzip bison gcc autoconf autoconf213 automake mhash-devel cmake Ruby file bzip2 bzip2-devel diff* libtool libtool-libs gcc-c++ libjpeg libjpeg-devel libpng libpng-devel libxml2 libxml2-d Evel Curl Curl-devel libmcrypt-devel freetype freetype-devel-Patch make zlib zlib-devel libtool-ltdl-devel expat-devel PCR E-devel geoip-devel openssl-devel openldap-devel e2fsprogs e2fsprogs-devel krb5-devel libidn libidn-devel Vixie-cron Libevent Libevent-devel

For example, executing the yum install openlitespeed-1.2.1 command indicates that you need to install version 1.2.1, without specifying a version number that is the latest stable version. Here old Chiang on this server encountered a problem, get not the latest version of the environment package, then I use the manual installation method. Because I am a side of the installation record article, so the whole problem will be recorded, so as to ensure authenticity, if you have encountered the same problems as me, then use the following manual installation.

The code is as follows Copy Code

wget http://open.litespeedtech.com/packages/openlitespeed-1.3.12.tgz
Tar xzf openlitespeed-1.3.12.tgz
CD openlitespeed-1.3.12

Here i download the latest 1.3.12 stable version, and then unzip into the environment directory, ready to compile.

The code is as follows Copy Code

./configure--prefix=/opt/itbulu/openlitespeed--with-openssl=/opt/itbulu--with-pcre=/opt/itbulu--with-zlib=/opt /itbulu

We also need to compile the Openlitespeed installation path and I prefer to install it directly in the/opt/itbulu/openlitespeed directory if the default is in the/usr/local/lsws directory. In the course of execution, there are also prompts for OpenSSL error problems (Configure:error:Can not found OpenSSL. You must install it before continuing.) Here we also need to execute the following command line.

The code is as follows Copy Code

ldflags= "-l/opt/itbulu/lib" cppflags= "-i/opt/itbulu/include"./configure--prefix=/opt/itbulu/openlitespeed-- With-openssl=/opt/itbulu--with-pcre=/opt/itbulu--with-zlib=/opt/itbulu

After the execution, we also need to perform a configure deployment, and then execute the deployment to compile the entire environment,

The code is as follows Copy Code

Make
Make install
Ldconfig

After the execution has been compiled, we can check the version.

The code is as follows Copy Code

Openlitespeed--version

If we do not check the version we are currently installing, there must be a problem, we will solve the problem.

Four, start and pause openlitespeed

#启动

/etc/init.d/lsws start

#暂停

/etc/init.d/lsws stop

The default installation of the Openlitespeed environment and our Litespeed port is 7080 ports, direct ip:7080 can open the Web interface, the default username is admin, the password is 123456, we log in and then adjust.

Summary, so our Openlitespeed server environment is installed, we only need to install the PHP version and MySQL database can deploy a simple site.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.