What to do if php in ubtunu does not parse

藏色散人
Release: 2023-03-17 07:10:01
Original
1071 people have browsed it

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".

What to do if php in ubtunu does not parse

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
Copy after login

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
Copy after login

3, and then restart apache2

sudo /etc/init.d/apache2 restart
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!