Home > Article > Backend Development > What environment is required to run php
Running php requires PHP operating environment
Based on Linux platform
LNMP: Linux, Nginx, MySQL, PHP
LAMP: Linux, Apache, MySQL, PHP
Based on Windows platform (Recommended learning: PHP programming from entry to proficiency)
WAMP: Windows, Apache, MySQL, PHP
Whether it is LNMP, LAMP, or WAMP, we can install and configure it, but as a quick starter, we can not worry about using it for the time being. For that environment, I don’t want to see how to configure the environment independently for the time being. Moreover, our predecessors have already prepared integrated environments for us, such as phpstudy, wamp, xampp, easyphp, etc. Here we recommend phpstudy's PHP running environment building tool on the windows platform, which is very easy to use.
phpstudy V8.0 download and installation steps:
Step one: Download the phpstudy V8.0 version installation package from the official website
Step 2: Unzip and double-click the phpstudy V8.0 installation package, and the following installation interface will appear.
Step 3: Then open the custom option and select the installation path. The default is to install on the D drive.
Note: The installation package is set to the second disk after the system disk by default. If there is no other drive letter, it will be installed on the C drive. When the host drive letter is only the C drive available, do not install it. Use a USB flash drive, otherwise it may be installed into the USB flash drive by mistake.
Step 4: After the installation is successful, the following interface will appear.
We can start or stop services such as Apache and MySQL in this interface.
(Initial run interface)
(Kit startup interface)
Step 5: Select the Settings item - System Settings, and then set the website root directory.
Step 6: After selecting and setting the root directory, click Apply, and then restart Apache.
Note: If it has been installed before, when installing again, please make sure that the last installation has been uninstalled or all files are readable. Otherwise, please back up the files, uninstall and then install again.
The above is the detailed content of What environment is required to run php. For more information, please follow other related articles on the PHP Chinese website!