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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
