Home > Article > Backend Development > How to solve the problem that php cannot be compiled
The solution to the problem that php cannot be compiled: first find and open the Apache configuration file; then load the PHP module in the file; and finally specify the processing method of the PHP file.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
If this problem occurs
Go to the Apache configuration file
#Add these lines of code (the example is php5, just write your own A few)
Don’t forget to restart Apache
It will work [Recommended learning: "PHP Video Tutorial"]
The above is the detailed content of How to solve the problem that php cannot be compiled. For more information, please follow other related articles on the PHP Chinese website!