Questions about upgrading PHP

Source: Internet
Author: User
Upgrade PHP Issues
My system is CentOS 5.7
The PHP version that was installed before the operating system was installed is 5.1.6
The version is too low to upgrade.
The highest version found on Yum is 5.1.6.
So go to php.net downloaded the source code tar package 5.3.10, unzip.
And then
#./configure--with-mysql
#make
#make Install

Querying the PHP version via RPM is still 5.1.6
What is the reason for this? Thank you so much.

------Solution--------------------
The installed version is compiled with a binary package and cannot be found in RPM unless you manually update the RPM DB
In addition, your compilation parameters are estimated to be much less than the previous version ...

You should use Php-i to get the compilation parameters of the old version before you upgrade, and then compile the new version with this parameter

The corresponding so is also to be recompiled
------Solution--------------------
APXS is generally the APXS path to Apache, but this parameter is not needed in the new version of PHP ...
If you want to use, you can refer to:--WITH-APXS2=/USR/LOCAL/APACHE2/BIN/APXS
Specific features find PHP's official website documentation for yourself.


How to view PHP's compilation parameters:
/usr/local/php/bin/php-i | grep Configure
------Solution--------------------
The new version is not installed, or is not installed successfully. Upstairs positive solution.
------Solution--------------------
http://www.google.com.hk/search?hl=zh-CN&newwindow=1&safe=strict&client=aff-cs-360chromium&hs= Cbz&q=centos%2bphp5.3&oq=centos%2bphp5.3&aq=f&aqi=&aql=&gs_sm=3&gs_upl= 34936l41449l0l41894l7l7l0l0l0l0l0l0ll0l0
http://liujiesmart.iteye.com/blog/773131
  • 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.