PHP is a popular server-side scripting language. Its latest version is PHP7.0, which has relatively high performance and fast execution speed. If you want to install PHP7.0 on your server, then this article will introduce you to the installation and startup method of PHP7.0.
- Install PHP7.0
First, you need to install PHP7.0 on your server. You can download the latest version of PHP7.0 by visiting the official website http://php.net/downloads.php. Then follow the steps below to install:
1.1 Download PHP7.0
You can choose to download one of the following two files:
PHP7.0 zip file: This is A zip file containing all PHP files. You need to unzip it to the root directory of your server.
PHP7.0 executable file: This is an executable file that contains all PHP files. You just need to run it to install PHP7.0 on your server.
1.2 Configuring PHP7.0
After installing PHP7.0, you need to configure your server to be able to execute PHP code on the server. You can do this by modifying the php.ini file.
The php.ini file is usually located in the following directory:
Unix/Linux:/usr/local/lib/php.ini
Windows: C:\Windows\php .ini
You only need to make the following configuration in the php.ini file to complete the configuration of PHP7.0:
extension=php_mysql.dll
extension=php_mysqli. dll
extension=php_gd2.dll
extension=php_openssl.dll
Finally, you need to add your PHP7.0 installation directory to your system path.
- Start PHP7.0
When you complete the above steps, your PHP7.0 is ready. You can start PHP7.0 with the following command:
php -S localhost:8000
This command will start a PHP server on the local host and listen to port 8000 on the local host.
If you have installed PHP7.0 but your server has not been started, you can start PHP7.0 with the following command:
sudo service php7.0-fpm start
This command will start the FastCGI process manager of PHP7.0.
Summary
Installing PHP7.0 is really simple, just follow the above steps. Once completed, you can easily execute PHP7.0 code on your server!
The above is the detailed content of How to start php7.0 after it is installed. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version
God-level code editing software (SublimeText3)

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor