Openlitespeed install MARIADB Database and PHP environment

Source: Internet
Author: User
First, install the MARIADB database

The code is as follows Copy Code

Yum Install Mariadb-server-y

Here we are using the CENTOS7 version, directly running the above script can directly install the MARIADB database. If you have a version that you have encountered that cannot be installed, you need to load the database source, which is shared later.

Second, install PHP5.6 version

The default openlitespeed is installed after the installation of V5.3 version of PHP, where we need to teach the new PHP5.6 version of the replacement.

The code is as follows Copy Code

Yum Install lsphp56 lsphp56-mysql-y

Execute Command Installation PHP5.6

See the above interface instructions installation completed.

Third, start the default boot PHP5.6 version

The code is as follows Copy Code

Ln-sf/usr/local/lsws/lsphp56/bin/lsphp/usr/local/lsws/fcgi-bin/lsphp5

Here we need to start using the default PHP5.6, or the default 5.3

Set the default openlitespeed password

The code is as follows Copy Code

/usr/local/lsws/admin/misc/admpass.sh

Executes the command to set the default username and password.

V. Database settings

The code is as follows Copy Code

Systemctl Start mariadb #启动
Systemctl Enable mariadb# Open

The first line of command is to start the database, and the second row is used when it is enabled after the server is started.

The code is as follows Copy Code

Mysql_secure_installation

Database security settings, this is similar to the one we set MySQL in. We need to set the database root user password and other accessibility options.

Check whether to start

The code is as follows Copy Code

Service LSWS Status

Use this line of command to check whether Openlitespeed is started.

Here is the boot. We can access the default interface through the following address.

The code is as follows Copy Code

http://xxx.xxx.xxx.xxx:8088

VII, Login management interface

The code is as follows Copy Code

http://xxx.xxx.xxx.xxx:7080

Through this address, we can login to openlitespeed login admin, including adding a site later.

Summary, so that we have created the openlitespeed in the CentOS environment, as well as PHP and the database, then we can add the site deployment site.

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.