LEMP (Linux/Nginx/MySQL/PHP) one-click package installation and SFTP quick website building tutorial

888u

Last update at :2024-07-08,Edit by888u

We build websites on VPS hosts. Whether we use one-click installation packages, manual compilation, or even use WEB panels, most of them use APACHE or NGINX mechanisms. The NGINX we are more familiar with is Jun Ge’s LNMP one-click installation. Bao, recently Snail has noticed an overseas NGINX script, and it is relatively simple and resource-saving to build a website. Everyone in foreign countries is accustomed to calling NGINX Engine X=E, so for Linux/Nginx/MySQL/PHP environment It is customary to call it LEMP, so Snail here also calls this script LEMP, so that it will not be confused with the famous LNMP. Secondly, if LEMP can be continuously improved in the future, it can also have its own name.

If you need to manually compile the NGINX website building environment, you can refer to Snail’s previous article \\"Debian installs LEMP (Linux/Nginx/MySQL/PHP) to build a website building environment\\". If you need to install a LAMP environment, you can refer to Debian7 Tutorial on configuring the LAMP environment and building a website and configuring CentOS6 to install the LAMP environment.

Article Directory Hide

First, LEMP one-click package installation environment

Second, LEMP one-click package installation steps

Third, LEMP uses SFTP to build a website

First, LEMP one-click package installation environment

Currently supports CENTOS 5 and CENTOS 6 32-bit and 64-bit

Second, LEMP one-click package installation steps wgethttps://soft.laozuo.org/lemp/centos-5-6-lemp.shshcentos-5-6-lemp.sh

Log in to our VPS host ROOT account, and then execute the SSH script above. It will take about 1 minute to install successfully.

If you see the above interface, it means success.

MySql root password represents the MYSQL database ROOT user password SFTP Username SFTP login user name SFTP Password SFTP user password Website document root is /www/ website storage path phpMyAdmin database path address

Third, LEMP uses SFTP to build a website

In this installation article, Snail first briefly introduces the basic application process. After successful installation, we can use IP to access the root directory to see the probe information. If we need to build a site, we can create a domain name folder in the www/ directory. For example, if we need to build a laozuo.org site in the environment, then we only need to create a laozuo.org folder in the www directory. Then we resolve the domain name to the IP address of the VPS, and the newly created folder to store the website program files can be resolved directly.

PS: I prefer to use WINSCP for SFTP software. If you have other different needs, you can refer to "3 Linux VPS host FTP file management software".

Recommended site search: Hong Kong high-defense server rental, Hong Kong vps host rental, icp registration website, domain name purchase Ministry of Industry and Information Technology icp registration, US host, vps host, host discount code, Check the Ministry of Industry and Information Technology for registration, cheap virtual host,

LEMP (Linux/Nginx/MySQL/PHP) one-click package installation and SFTP quick website building tutorial

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码