I raised a question before/q/10..., and then deleted all the php files related to Linux (rpm -qa|grep php has no package, which php cannot find the file, php -v, php command Output command not found) But why can the server's apche still compile php files and output phpinfo()? I created some new test php files and they all compile and output. Even restarting the server has no effect. .
Solution to the problem:
The server's php is installed with dependencies. It seems that apache will have a php cache after installation. . If you change the version of php and re-install it, phpinfo will display the reinstalled php version information. .
Detect whether there are other versions of php, find . -name 'php', check the php_module file loaded by the apache configuration file
Apache introduced the so file, delete it