Home > Article > Backend Development > How to modify apache php version
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.
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!