How to make the web end use this new SegmentFault when compiling and installing a new php version

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

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.