Linux server integrated environment WDCP installation and configuration

1. Environment installation

Install the integrated environment according to the official instructions (https://www.wdlinux.cn/wdcp/install.html)

#下载集成环境安装包
wget http://dl.wdlinux.cn/lanmp_laster.tar.gz
#解压安装包
tar zxvf lanmp_laster.tar.gz
#执行安装命令(执行之前需将lanmp.sh赋予可执行权限,一般解压后已经自动赋予,如果没有可执行命令chmod 777 lanmp.sh赋予该文件所有权限)
./lanmp.sh

After the above command is executed, it will let you choose the installation mode

Select Install
    1 LAMP (apache + php + mysql + zend +  pureftpd + phpmyadmin)
    2 LNMP (nginx + php + mysql + zend + pureftpd + phpmyadmin)
    3 LNAMP (nginx + apache + php + mysql + zend + pureftpd + phpmyadmin)
    4 install all service
    5 don't install is now

You can choose to install it according to your needs. In general, it is recommended: 2

Reasons to choose LNMP:

    1) The integrated environment provides multiple PHP version support functions, only this mode is supported

    2) Compared with Apache, Nginx can save a lot of server resources and improve server access speed

Enter 2, press Enter, and wait for the installation to complete (it may take 2 to 3 minutes, and the actual installation time is related to the server configuration)

2. Install multiple PHP version support (the default version is 5.5, if you only need this version, you can skip this step)

Enter the lib directory, find phps.sh, and give executable permissions (for convenience, directly give all users and user groups full permissions 777, you can refer to the relevant information for specific permissions), and then execute the installation

cd lib
chmod 777 phps.sh
./phps.sh

3. Modify the default configuration of the server

Purpose: Reduce and reduce server security risks

1. Modify the default password and port of the integrated environment background

    Enter the background (http://IP:8080), the default username and password are admin wdlinux.cn

    After entering the home page, there will be a prompt that WDCP uses the default password is not safe and requires you to modify it. The password is preferably randomly generated, must contain numbers, letters, and special characters at the same time, and the length is 15 digits.

    Port settings: After entering the background, click the first menu system settings, there is access port settings on the right side, where you can set the access port of WDCP (the default is 8080, after modification, the access address of the integrated environment management system will be changed to http: //IP: modified port)

2. Modify the default database password and port

    After entering the home page as above, you will be prompted that the root password of MySQL is the default password (wdlinux.cn), which is not safe and requires you to modify it.

    Port modification: Click the MySQL settings in the MySQL management on the left menu, click the [Online Edit Configuration File] button on the right, find all 3306 (mysql default port) in the pop-up window, and replace with the port you need

3. Delete MySQL default user

    MySQL has a total of four default users for four different hosts. In fact, we only need to keep the users whose hosts are 127.0.0.1 and localhost, and delete all others. The root user cannot open remote connections to the outside world, and other newly created users cannot give mysql full permissions. Only some permissions can be granted

Fourth, modify the SSH remote connection port

    In the SSH settings in the security management on the left menu, modify the specified port, and click the restart button below to restart the ssh service after the modification is completed.

Five, firewall configuration

    In the firewall settings in the security management on the left menu, add service ports such as mysql, ftp, ssh, etc.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324933978&siteId=291194637