Upgrading php 5.1 to 5.3 on Centos 5.11
Hi,
I am upgrading php 5.1 to 5.3, Every things looks like fine but i am getting warring. [root@localhost ~]# php -v PHP Warning: PHP Startup: filter: Unable to initialize module Module compiled with module API=20050922 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 PHP 5.3.3 (cli) (built: Oct 31 2014 09:52:36) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies. 1. i have use:- wget http://museum.php.net/php5/php-5.3.3.tar.gz #tar xf php-5.3.3.tar.gz #cd php-5.3.3/ext/mcrypt/ #phpize #aclocal #./configure #Make #make test #make install #echo -e "; Enable mcrypt extension module\nextension=mcrypt.so" | sudo tee /etc/php.d/mcrypt.ini #wget http://pear.php.net/go-pear.phar to make install pear package #php go-pear.phar ___________________________________________________________________ #rpm -qa |grep phpphp53-cli-5.3.3-26.el5_11 php53-gd-5.3.3-26.el5_11 php53-pgsql-5.3.3-26.el5_11 php53-mcrypt-5.3.3-1.el5 php53-common-5.3.3-26.el5_11 php53-5.3.3-26.el5_11 php53-mbstring-5.3.3-26.el5_11 php53-mysql-5.3.3-26.el5_11 php53-xml-5.3.3-26.el5_11 php-pecl-filter-0.12.0-0 php53-devel-5.3.3-26.el5_11 php53-pdo-5.3.3-26.el5_11 php53-xmlrpc-5.3.3-26.el5_11 Here, pear-package is not reflecting.. Please suggest to resolve this issue.. ________________________________________________________ #vi /etc/php.ini [PHP] ;;;;;;;;;;;;;;;;;;; ; About php.ini ; ;;;;;;;;;;;;;;;;;;; ; PHP's initialization file, generally called php.ini, is responsible for ; configuring many of the aspects of PHP's behavior. ; PHP attempts to find and load this configuration from a number of locations. ; The following is a summary of its search order: ; 1. SAPI module specific location. ; 2. The PHPRC environment variable. (As of PHP 5.2.0) ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0) ; 4. Current working directory (except CLI) ; 5. The web server's directory (for SAPI modules), or directory of PHP ; (otherwise in Windows) ; 6. The directory from the --with-config-file-path compile time option, or the ; Windows directory (C:\windows or C:\winnt) ; See the PHP docs for more specific information. ; http://www.php.net/manual/en/configuration.file.php ; The syntax of the file is extremely simple. Whitespace and Lines ; beginning with a semicolon are silently ignored (as you probably guessed). ; Section headers (e.g. [Foo]) are also silently ignored, even though ; they might mean something in the future. ; Directives following the section heading [PATH=/www/mysite] only ; apply to PHP files in the /www/mysite directory. Directives ; following the section heading [HOST=www.example.com] only apply to ; PHP files served from www.example.com. Directives set in these ; special sections cannot be overridden by user-defined INI files or ; at runtime. Currently, [PATH=] and [HOST=] sections only work under ; CGI/FastCGI. ; http://www.php.net/manual/en/ini.sections.php ; Directives are specified using the following syntax: ; directive = value ; Directive names are *case sensitive* - foo=bar is different from FOO=bar. ; Directives are variables used to configure PHP or PHP extensions. ; There is no name validation. If PHP can't find an expected "/etc/php.ini" 1659L, 69097C |
why not just use the package manager ?????
php 5.3 is in the cent 5.11 update repos Code:
su - |
All times are GMT -5. The time now is 02:47 AM. |