Compile and install the new version of PHP, how to let the Web side use this new Segmentfault

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.