Compile and install the new version of PHP, how to let the Web side use this new PHP
Reply content:
Compile and install the new version of PHP, how to let the Web side use this new PHP
Do not see too understand your problem, since the compilation has been completed, the webserver is not already in accordance with the new PHP version of the original parsing PHP code? Or you can just use Phinfo to see the version.
Do not know the landlord means that the new version of PHP is not replaced with the old version, if so, directly overwrite the old version of the file
Instead of overwriting the old file, the new compilation must be in the new directory, just add a new mod in Apache, about how to use the new mod
https://segmentfault.com/q/1010000000531561
A new libphp5.so is generated when PHP is compiled. See details: https://segmentfault.com/q/1010000000531561
It should be compiled with '--WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS ' followed by your Apache address, which will automatically generate a new LIBPHP5 (7). So, or copy the libphp.so in the installation file to the Apache modules directory, modify the httpd.conf add LoadModule php5 (7) module LIBPHP5 (7). So.
Compile the time to specify a directory to put all the files in a directory, need to use the new version of the directory to delete the list of the time, or the new compilation when the directory is designated as the old PHP directory, directly covered on the line.
After the PHP environment is set up, just put the Web program into the directory of Apache designated Docuemtroot.
Put the project in the new installed PHP document root directory to run it.
Start the newly compiled PHP cgi,fastcgi configured as new PHP, and you can let your web use the new