Home > Article > Backend Development > What to do if php in ubtunu does not parse
Solution to the problem that PHP is not parsed in ubtunu: 1. Execute the "sudo apt-get install libapache2-mod-php sudo a2enmod php" command; 2. Completely uninstall "libapache2-mod-php" and reinstall it; 3. Restart apache2 through "udo /etc/init.d/apache2 restart".
The operating environment of this tutorial: ubuntu18 system, PHP version 8.1, Dell G3 computer.
What should I do if php in ubtunu is not parsed?
ubuntu18 cannot parse php problem solution
1,
sudo apt-get install libapache2-mod-php sudo a2enmod php
2. If it displays This module does not exist!
, uninstall it completely libapache2-mod-php, then reinstall it
sudo apt-get remove --purge libapache2-mod-php sudo apt-get install libapache2-mod-php
3, and then restart apache2
sudo /etc/init.d/apache2 restart
Extension:
Ubuntu is a Linux operating system mainly based on desktop applications. Its name comes from the word "ubuntu" in Zulu or Hausa in southern Africa, which means "humanity" and "my existence is because of everyone's existence". It is a traditional African value. Ubuntu is based on the Debian distribution and the Gnome desktop environment. Starting from version 11.04, the Ubuntu distribution abandoned the Gnome desktop environment and changed it to Unity. In the past, people thought that Linux was difficult to install and use. After the emergence of Ubuntu, these became history. Ubuntu also has a huge community power, and users can easily get help from the community. Since Ubuntu 18.04 LTS, Ubuntu distributions have started to use the GNOME3 desktop environment again.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if php in ubtunu does not parse. For more information, please follow other related articles on the PHP Chinese website!