How to uninstall php that has been installed?
Due to project requirements, the PHP version must be lowered from 5.4 to 5.3. Therefore, it is necessary to uninstall the PHP that comes with CentOS7.0. Please see the following steps.
Method/Step
Step one: Uninstall php5.4
1. Check php version
2 . Uninstall php
3. Check whether php is uninstalled
php failed to complete the uninstallation, and there are corresponding dependency packages. So you need to uninstall it next.
4. Uninstall the dependent package corresponding to php
The information on the Internet is to use rpm -e to uninstall, but after trying several times, it prompts that the package cannot be found. Installation package.
# rpm -e php-mysql-5.1.6-27.el5_5.3# rpm -e php-pdo-5.1.6-27.el5_5.3# rpm -e php-xml-5.1.6-27.el5_5.3# rpm -e php-cli-5.1.6-27.el5_5.3# rpm -e php-gd-5.1.6-27.el5_5.3# rpm -e php-common-5.1.6-27.el5_5.3
The solution is as follows:
5. Check again whether php has been uninstalled
For more related tutorials, please visit php Chinese website.
The above is the detailed content of How to uninstall installed php. 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

Atom editor mac version download
The most popular open source editor

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1
Powerful PHP integrated development environment
