Home > Article > Backend Development > What to do if ubuntu php does not parse
Solution to ubuntu php not parsing: 1. Install apache2 and php7.0 libapache2-mod-php7.0; 2. Modify short_open_tag in the php configuration file to on.
The operating environment of this article: ubuntu 16.04 system, php7.0 version, Dell G3 computer.
What should I do if ubuntu php does not parse?
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
can access the html webpage normally:
but 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 php does not parse. For more information, please follow other related articles on the PHP Chinese website!