Home >Backend Development >PHP Problem >How to compile and install php7.2?
1. Download the source code of php7.2
2. On the Linux computer where you want to compile php7.2, install make/gcc and other compilation tools , and dependent software packages
3. Unzip the downloaded php7.2 source code compressed package
4. Run ./configure in the source directory to configure before compilation. Here you can add different options according to your needs
5. Finally, add the bin directory of php7.2 to the system variable PATH
6. Then you can use php commands directly
Recommended tutorial: PHP video tutorial
The above is the detailed content of How to compile and install php7.2?. For more information, please follow other related articles on the PHP Chinese website!