Home  >  Article  >  Backend Development  >  How to modify apache php version

How to modify apache php version

王林
王林Original
2021-07-14 14:07:074493browse

How to modify the php version of apache: first disable the previous php version, such as [a2dismod php7.0]; then enable the new php version, such as [a2enmod php7.3]; and finally re-enable apache.

How to modify apache php version

The operating environment of this article: ubuntu 5.4.0 system, apache 2&&php 7.3&&php 7.0, thinkpad t480 computer.

In this article, we will introduce how to modify the php version of apache 2. Let’s take a look.

For example, if we want to upgrade php7.0 to php7.3, what should we do?

Install php7.3

apt-get install php7.3

Disable php7.0

a2dismod php7.0

Enable php7.3

a2enmod php7.3

Restart apache2

service apache2 restar

Related videos Tutorial sharing: php video tutorial

The above is the detailed content of How to modify apache php version. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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