I want to upgrade php because the version of php installed before CentOS5.7 is 5.1.6, which is too low. In yum, the highest version is 5.1.6, so I went to php.net to download the source code tar package 5.3.10 and decompress it. Then #./configure -- with-upgrade php
My system is CentOS 5.7
The php version installed before operating system installation is 5.1.6
The version is too low and you want to upgrade it.
The highest version found on yum is 5.1.6.
So I downloaded the source code tar package 5.3.10 from php.net and decompressed it.
Then
#./Configure -- with-mysql
# Make
# Make install
Query the php version by rpm is still 5.1.6
Why? Thank you.
------ Solution --------------------
You cannot use rpm to check the version compiled and installed with a binary package, unless you manually update the rpm db
In addition, your compilation parameters are estimated to be much less than the previous versions...
You should first use php-I to obtain the compilation parameters of the old version before upgrading, and then use this parameter to compile the new version.
The corresponding so must be re-compiled.
------ Solution --------------------
Apxs generally points to the apache apxs path, but this parameter is no longer required in the new php version...
For more information, see -- with-apxs2 =/usr/local/apache2/bin/apxs.
Find the official php documentation for specific functions.
How to View php compilation parameters:
/Usr/local/php/bin/php-I | grep configure
------ Solution --------------------
The new version is not installed or is not installed successfully. Upstairs 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 = 34936l41449l0l41894l7l7l0l0l0l0l0l0l0ll0l0
Http://liujiesmart.iteye.com/blog/773131
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