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.
| 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.
| 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.