How to modify apache php version

William Shakespeare
Release: 2023-03-11 14:26:02
Original
4400 people have browsed it

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

Disable php7.0

a2dismod php7.0
Copy after login

Enable php7.3

a2enmod php7.3
Copy after login

Restart apache2

service apache2 restar
Copy after login

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!

Related labels:
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
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!