Last update at :2024-06-17,Edit by888u
If we need to quickly deploy a website environment in a VPS or server and the software version requirements for the WEB environment are not very high, we can use yum to quickly install the LAMP WEB environment to deploy and set up the website environment. Snail has also introduced manual installation of the WEB environment in previous blog posts, and the APT-GET method of installing WEB in the Deibian environment in this article a few days ago is a direct yum installation using the environment's own software.
The yum installation process to be shared in this article today is based on the RCAT one-click script I saw online before, which integrates all the yum processes required for the LAMP WEB environment, and the author added a more convenient virtualhost script, so that we can install The process is all visual selection, and adding sites and databases after installation is done directly through the SSH interface, without the need for us to manually configure files.
Snail has previously shared some reference articles about LAMP WEB environment:
1. One-click installation of LNMP/LAMP/LNMPA website environment on CentOS/Debian/Ubuntu system
2. Complete configuration of CentOS6 installation LAMP (Apache/MySQL/PHP) environment building tutorial
First, RCAT system environment requirements and software download and installation
The RCAT script currently only supports CentOS 5/6/7 releases of 32 or 64-bit systems, and requires more than 256MB of memory. The installation environment includes basic WEB uses of Apache+MySQL+PHP, and also adds some component support for system optimization and acceleration.
yum -y install wgetyum -y install screen && screenwget -O rcat.sh http://rcat.gidcs.net/sh/rcat.sh;chmod 755 rcat.sh;./rcat.sh 2>&1 | tee rcat.log
I saw the download and installation address of the script from the source above. I remember that I also saw the site with the . I also downloaded a copy of the script to a local document.
Backup script: https://soft.laozuo.org/lamp/rcat.sh
If the official installation path above fails, use the alternate one below.
Second, RCAT script installation process of LAMP environment
After executing the script installation, we will be prompted to enter any key to continue, then enter the current host name (any), email (any), set the ROOT database password and modify the current VPS server port. After setting up and pressing Enter, it will be installed automatically.
When you finally see such an interface, it means that the LAMP of the RCAT environment has been installed, which is much faster than compiling and installing it or using one-click package installation. Later we will use the provided toolbox to quickly add sites and databases.
Third, RCAT quickly adds sites and databases
vhost.sh
Log in to the current root directory, we can see that there is a vhost.sh file, enter it directly in SSH to start the website building mode. As a general rule, we will deploy the site manually, which is a bit troublesome, isn't it? The great thing about this script is that it can be added quickly.
We need to add the domain name, FTP user name and password to be bound according to the prompts, and set the database name and user name.
Seeing this interface means the installation is complete. We can also download and install the WP program with one click. If necessary, enter y and press Enter, otherwise n and press Enter. Here I will install WP and take a look.
Here you can see that all FTP and database information are at the bottom. We want to save and download.
Finally, if the domain name we bound resolves to the current IP address, and after it takes effect, directly open the domain name URL, you can see the installation interface of the WP program, enter the corresponding database information, and the installation is complete. If you need to modify a file via FTP, just log in to the corresponding site directory through an FTP account or SFTP to modify it. In this way, this quick LAMP YUM deployment process is completed relatively smoothly. It is much faster than our regular installation of WEB environment. It is still more suitable for playing or deploying a simple LAMP environment, but some WEB component versions are lower.
Recommended site search: virtual host Hong Kong host, dual line dual IP, Singapore server, ip purchase, US virtual host, registered domain name purchase, server, private server website space, China Unicom virtual host, free virtual host,
发表评论