Home > Article > Backend Development > What to do if Ubuntu's PHP cannot be compiled
Solution to the problem that Ubuntu's PHP cannot be compiled: 1. Execute "apt-get install apache"; 2. Install PHP through "apt-get install php7.0 libapache2-mod-php7.0"; 3. Just modify the php configuration file.
The operating environment of this article: ubuntu 16.04 system, php7.0 version, Dell G3 computer.
What should I do if php on Ubuntu cannot be compiled?
ubuntu16.04 php cannot be parsed normally
Install apache2:
apt-get install apache2
Install php7.0 libapache2-mod-php7. 0:
apt-get install php7.0 libapache2-mod-php7.0
You can access the html webpage normally:
But you cannot open the php file. The php file is written as follows:
Processing: Change the above code to the following
.
Or change
Off in the php configuration file to On.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if Ubuntu's PHP cannot be compiled. For more information, please follow other related articles on the PHP Chinese website!