How to make the web end use the new php version compiled and installed, and how to make the web end use the new php version
Reply content:
How to make the web end use the new php version compiled and installed
I don't understand your problem. Since the compilation and installation are complete, isn't webserver parsing php code based on the new php version? Or you can use phinfo to check the version.
I don't know if the old version is replaced by the new version of PHP. If yes, the old version of the file will be overwritten.
No need to overwrite the old files. The new compilation must be in the new directory. You only need to load the new mod in apache. How to use the new mod?
Https://segmentfault.com/q/1010000000531561
A new libphp5.so is generated during PHP compilation. See specific: https://segmentfault.com/q/1010000000531561
It should be that after '-- with-apxs2 =/usr/local/apache/bin/apxs' is behind your apache address, a new libphp5 (7) will be automatically generated ). so, or copy the libphp. so go to the modules directory of apache and modify httpd. added loadmodule php5 (7) module libphp5 (7) in conf ). so.
During compilation, specify a directory to put all the files in one directory. You only need to delete this directory when using the new version, or specify the directory as the old php Directory during the new compilation and overwrite it directly.
After the php environment is set up, you only need to put the Web program under the DocuemtRoot directory specified by apache.
Put the project in the root directory of the newly installed php document and run it.
Start the newly compiled php cgi, fastcgi is configured as the new php, so that your web can use the new