Home > Backend Development > PHP Tutorial > Specific steps for installing PHP probes on VPS under Linux

Specific steps for installing PHP probes on VPS under Linux

不言
Release: 2023-04-03 10:54:02
Original
2457 people have browsed it

There are many ways to install PHP probes, but the installation method sometimes has some problems. Next, I will introduce to you a more time-saving and memory-saving installation method. Not much content, but it saves time.

Note: Many people probably only install Junge’s lnmp one-click package, which is very troublesome. After all, it takes a long time to install lnmp. There are also more or less fool-like tutorials written by many people. There will also be some problems, and there is no good solution. I just wanted to write a tutorial that can be installed in a few minutes. I saw the lowendscript lnmp script written by foreigners. It is very fast to install nginx and php environments separately. It also saves memory, so I used it. Okay, here's the method. It usually takes 2 minutes to install, which is quite fast.

Note: This method is only applicable to Ubuntu and Debian systems.

1. System update and upgrade

apt-get -y update && apt-get -y upgrade
Copy after login

2. Install Nginx and php environment
Log in to vps and run the following command:

wget --no-check-certificate https://raw.github.com/Xeoncross/lowendscript/master/setup-debian.sh && chmod +x setup-debian.sh && ./setup-debian.sh dotdeb && ./setup-debian.sh nginx && ./setup-debian.sh php
Copy after login

3. Create site directory and download Ya Black probe
If the system does not have unzip installed, use the command: apt-get install unzip to install it, which will be used below.

Change your_ip in the following command to your server IP and then execute the command:

./setup-debian.sh site your_ip && cd /var/www/your_ip/public && wget http://www.yahei.net/tz/tz.zip && unzip tz.zip
Copy after login

You can also change your_ip to one of your domain names, but the domain name must be resolved to the server IP.
Last probe access address: http://your_ip/tz.php

Tip: If you don’t like the Yahei probe, you can create the site directory and use ftp tools such as WinSCP to add other probes Just upload the file to the /var/www/your_ip/public directory!

Related recommendations:

phpnow php probe environment detection code, phpnow probe

What is a php probe? What does php probe do?

The above is the detailed content of Specific steps for installing PHP probes on VPS under Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template