How do i uninstall php 7.3 on centos 7?
First remove everything regarding old php version (will take some time...) Show
then, install newer version (will take even more time)
dont forget to do restart and check sudo apachectl restart systemctl status httpd If you're running fpm with NGinX then use following uninstall (this will keep the config's just o remove packages / dependencies)
and install
(use [72] instead of [7] if you need to) save, exit and restart
please consider stepping down to version 7.1, as that might be a little less pain connecting modules than latest version, especially on always problematic centOS (thanks @fyrye for options on remove)
IntroductionPHP is a server-side scripting language used for web development. PHP is a really powerful tool for developing backend web applications. Đang xem: How to uninstall php 7 In this tutorial we will learn how to uninstall PHP 7.3 on CentOS 7. PrerequisitesAn up-to-date CentOS 7 server instanceA sudo userPHP 7.3 already installed on the server. Xem thêm: Ung Thư Đại Tràng Polyp Đại Trực Tràng Có Thể Tiến Triển Thành Ung Thư Step 1 – Get List of all PHP modules installedFirst lets run this command to get the list of all PHP related modules installed on the system: yum list installed | grep phpExpected Output: php.x86_64 7.3.4-1.el7.remi Step 2 – Uninstall the undesired PHP modules installedOnce the packages are listed, you can uninstall the unrequired package using the following command: yum -y remove For example, to remove the PHP cli package run the following command: yum -y remove php-cli.x86_64This will uninstall the PHP-cli package from your CentOS 7 system. If you want to remove PHP and all its related modules, you can run the following command: yum -y remove php*This will remove PHP and all its related modules from your system Step 3 – Verifying if PHP is uninstalledYou can also verify if PHP is successfully uninstalled by running the following command: yum list installed | grep phpYou are expected to see no packages listed. Xem thêm: Phân Biệt ” Phần Mềm J&Amp;T, Phân Biệt Phần Mềm Và Ứng Dụng ConclusionCongrats on uninstalling PHP 7.3 from your CentOS 7 server. For more information visit: PHP information Tags How to Install and SetUp Apache Web Server on CentOS 7 August 3, 2020 How to Uninstall PHP 7.4 on Ubuntu 20.04August 10, 2020 How to Install PHP 7.4 on Ubuntu 20.04August 10, 2020 How to Upgrade MariaDB 5.5 to 10.4 on CentOS 7 August 9, 2020 How do I remove a specific version of PHP?Select Updates. Select Add/ Remove Components. Select Web Hosting >> PHP interpreter versions. Select the outdated version of PHP, and then select Remove.
How do I uninstall PHP?To uninstall the PHP agent from your system:. Remove the agent files from your system: RedHat or CentOS. ... . Remove any remaining New Relic configuration files. ... . If you use a package manager, remove files specific to the manager: ... . Restart your web servers (Apache, Nginx, PHP-FPM, etc.).. How do I uninstall PHP extensions?Remove the Extension's Configuration File
To remove a PHP extension, SSH into your server as root and run the following command. Replace EXTENSION with the name of the extension to remove. If the extension was installed on multiple PHP versions, repeat the above steps for each PHP version.
|