LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2016, 02:09 PM   #1
mayankkumar
LQ Newbie
 
Registered: May 2016
Location: hyderabad
Posts: 1

Rep: Reputation: Disabled
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
 
Old 05-06-2016, 03:23 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,465

Rep: Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606Reputation: 2606
why not just use the package manager ?????

php 5.3 is in the cent 5.11 update repos
Code:
su -
yum search php
it will be in the list
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
After upgrading php 5.3.8 to php 5.4.30 php files are not being executed kingkashif Linux - Server 5 06-26-2014 11:15 AM
Upgrading PHP 5.3.3 to 5.4 CentOS 6.4 (Transaction Check Error) centurypixel Linux - Newbie 6 04-03-2014 04:46 AM
PHP error after upgrading to latest version of PHP Skillz Programming 3 08-17-2012 09:02 PM
PHP Warning after upgrading from PHP 5.2.1 to 5.3.1 on CentOS rossie Linux - Newbie 4 12-20-2009 03:18 PM
Upgrading PHP on CentOS? subnet_rx Linux - Distributions 1 03-15-2008 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration