nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

PHP 5 issue

This is a discussion on PHP 5 issue within the Coding in General forums, part of the Development/Scripting category; Hi I installed php -5(5.2.6) in my red hat 4 box then i removed and install PHP 5.4.1 through rpm ...


Go Back   nixCraft Linux Forum > Development/Scripting > Coding in General

Linux answers from nixCraft.


Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2008, 05:57 AM
Junior Member
User
 
Join Date: Nov 2008
OS: Red Hat 4
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tanweernoor is on a distinguished road
Default PHP 5 issue

Hi
I installed php -5(5.2.6) in my red hat 4 box then i removed and install PHP 5.4.1 through rpm package.
when i am doing php -v it stil shows me 5.2.6 while actual php version on my system is 5.4.1
Reply With Quote
  #2 (permalink)  
Old 07-11-2008, 02:04 AM
Junior Member
User
 
Join Date: Nov 2008
OS: Red Hat 4
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tanweernoor is on a distinguished road
Default

can any1 reply here please
Reply With Quote
  #3 (permalink)  
Old 07-11-2008, 02:47 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Run /usr/bin/php -v and see the output,
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #4 (permalink)  
Old 07-11-2008, 02:51 AM
Junior Member
User
 
Join Date: Nov 2008
OS: Red Hat 4
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tanweernoor is on a distinguished road
Default

hi nixcraft
thanks for your reply
below are the outputs,

/usr/bin/php -v

PHP 5.1.4 (cli) (built: Nov 4 2008 12:06:15)

php -v
PHP 5.2.6 (cli) (built: Nov 3 2008 17:30:02)

please suggest,
Reply With Quote
  #5 (permalink)  
Old 07-11-2008, 02:57 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

you got only php 5.1.4, to safer side just following to make sure you do not have both version installed
Code:
rpm -qa | grep -i 'php*'
Above should only display rpm file related to 5.1.4 version..
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #6 (permalink)  
Old 07-11-2008, 03:03 AM
Junior Member
User
 
Join Date: Nov 2008
OS: Red Hat 4
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tanweernoor is on a distinguished road
Default

rpm is showing both ( the default with RHEL-4 and the one i installed using your method), I was not able to remove the default one, php-5.2.6 i installed using make not rpm
here is the rpm output

rpm -qa | grep -i 'php*'
php-pear-4.3.9-3.22.9
php-5.1.4-1.esp1
php-xml-5.1.4-1.esp1
php-ldap-4.3.9-3.22.9
kdegraphics-3.3.1-10.el4
kdegraphics-devel-3.3.1-10.el4
php-mbstring-4.3.9-3.22.9
php-domxml-4.3.9-3.22.9
php-pgsql-5.1.4-1.esp1
cdparanoia-libs-alpha9.8-24
php-mysql-5.1.4-1.esp1
php-imap-5.1.4-1.esp1
php-4.3.9-3.22.9
cdparanoia-alpha9.8-24
gphoto2-2.1.4-7
gphoto2-devel-2.1.4-7
php-gd-4.3.9-3.22.9
php-debuginfo-5.1.4-1.esp1
php-odbc-5.1.4-1.esp1
php-pgsql-4.3.9-3.22.9
php-snmp-4.3.9-3.22.9
php-pdo-5.1.4-1.esp1
php-mbstring-5.1.4-1.esp1
php-xmlrpc-5.1.4-1.esp1
php-ncurses-4.3.9-3.22.9
php-gd-5.1.4-1.esp1
php-snmp-5.1.4-1.esp1
php-odbc-4.3.9-3.22.9
libtheora-1.0alpha3-5
gphoto2-2.1.4-7
perl-XML-Grove-0.46alpha-27
cdparanoia-devel-alpha9.8-24
theora-tools-1.0alpha3-5
php-dba-5.1.4-1.esp1
php-ncurses-5.1.4-1.esp1
php-xmlrpc-4.3.9-3.22.9
php-ldap-5.1.4-1.esp1
cdparanoia-libs-alpha9.8-24
php-devel-5.1.4-1.esp1
php-mysql-4.3.9-3.22.9
libtheora-1.0alpha3-5
libtheora-devel-1.0alpha3-5
php-devel-4.3.9-3.22.9
php-bcmath-5.1.4-1.esp1
php-imap-4.3.9-3.22.9
php-soap-5.1.4-1.esp1
Reply With Quote
  #7 (permalink)  
Old 14-11-2008, 10:03 AM
Junior Member
User
 
Join Date: Nov 2008
OS: Red Hat 4
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tanweernoor is on a distinguished road
Default

Hi nixcraft
as per instruction here
Install PHP 5 on Red Hat Enterprise Linux version 4

I removed php 4.3.9 and used option --nodeps now i do not see php-pear under the link you have suggested for x86_64 php rpm packages.
now if i am querying rpm -qa | grep php below is the output.

php-5.1.4-1.esp1
php-xml-5.1.4-1.esp1
php-pgsql-5.1.4-1.esp1
php-mysql-5.1.4-1.esp1
php-imap-5.1.4-1.esp1
php-debuginfo-5.1.4-1.esp1
php-odbc-5.1.4-1.esp1
php-pdo-5.1.4-1.esp1
php-mbstring-5.1.4-1.esp1
php-xmlrpc-5.1.4-1.esp1
php-gd-5.1.4-1.esp1
php-snmp-5.1.4-1.esp1
php-dba-5.1.4-1.esp1
php-ncurses-5.1.4-1.esp1
php-ldap-5.1.4-1.esp1
php-devel-5.1.4-1.esp1
php-bcmath-5.1.4-1.esp1
php-soap-5.1.4-1.esp1


Please suggest for the same ASAP

thank you very much in advance
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Small Issue : please help resolvinig it ermunishanand Shell scripting 1 11-10-2008 01:54 AM
squid configuration issue kathy79 CentOS / RHEL / Fedora 0 04-07-2008 05:06 PM
Issue During MRTG Installation???/ ajeetraina CentOS / RHEL / Fedora 0 02-06-2008 06:14 PM
Issue related to shells vaibhav.kanchan Getting started tutorials 4 25-03-2008 12:52 AM
Log Off Issue tkinsella Linux software 1 30-08-2005 03:03 PM


All times are GMT +5.5. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38