Linux install and uninstall software PHP7

After I installed Linux compiler php7.1.33 (lamp architecture), pages can parse HTML, but access .php file appears to download the phenomenon.
1, first check if Apache module php7.
/usr/local/apache/modules/libphp7.so LS
2, you can also visit the httpd configuration file to see if there are modules / libphp7.so
3, typically configure PHP lacks a --with-apx2. There may be time to make a mistake. It should make then make after Clean.
4, the final solution is to recompile the installation. Then success. Encounter this problem, you can compile and install more than a few times. Recompilation of course no problem, it will be essential to uninstall. Next, I will introduce several ways to uninstall. And I was the source package is installed, when the case rm, the most clean and efficient.

Installation:

1, yum -y install // yum installation
2, tar xzvf abc.tar.gz cd abc chmod + x abc // need to install the software, if the binary pre-compiled package similar way, it is in the same operating system compiler well, I was so understandable.
3, rpm -ivh // rpm package installation, the package relies too, recommended yum install.
4,. / Configure make && make install // source package installation.
and many more.......

First, on how to uninstall after install yum

yum install and uninstall are relatively straightforward. The following three steps
1, yum search 'xxxxx' search packet
2, yum install -y xxxx installation package yum group install xxxx mounting kit
3, yum remove -y xxxx unload package unload package yum group remove xxxx

Second, on how to uninstall after installation rmp

Of course, this approach is not limited to rpm installation so you have to uninstall.
1, rpm -ivh -i represents installed, visual -v, -h display the progress of the installation, the installation -force force, even if the package cover such other documents also be installed, mounted in the waist-nodeps rpm depending on other packages, even if no other packages installation, but also install this package. -U upgrade.
-ivh RPM
2, RPM -qa package name to query the current system for all installed packages, then pipes commonly used. rpm -qi xxx rpm package information inquiries. rpm -ql xxx rpm a list of the installed files
rpm -qf filename inquiry which rpm package a file belongs to, this is also useful.
3, rpm unloading, rpm -e filename, the name of the package you want to uninstall by querying get.

Third, on how to compile and install after uninstalling

Although later he wrote a lot, but the word is summarized rm delete files to uninstall .
1. If no --prefix option . Source package does not provide make uninstall, you can be a complete uninstall in the following ways:
a temporary directory reinstall it again, such as:
./configure --prefix = / tmp / for_remove the make install &&
then traverse the / tmp / for_remove files, delete corresponding to the location of the installation files can then (as / tmp / for_remove in the directory structure is no directory structure when --prefix option to configure) found.
Of course you want to uninstall the program, can also be used in the original directory make a make uninstall, but only if the Makefile have uninstall command, a lot is no uninstall.

2, if you configure --prefix . Such as:
./configure --prefix = / usr / local / test
all resource files will be placed after the installation / usr / local / test directory, will not divert to another directory.
Another benefit of using --prefix option is easy to uninstall the software or porting software
when a software installation is no longer required, just simply delete the installation directory rm -rf / usr / local / test , you can uninstall the software Clean;
portable software to only copy of an entire machine to another (provided that the same operating system)


Summary: The need to abandon the mindset uninstall Windows, because Linux file system is not too much junk, and what registry ah like. There is no C drive. So rm really I am gone, be careful.

Guess you like

Origin blog.51cto.com/12218973/2456262