1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Uninstall PHP or upgrade PHP
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: Uninstall PHP or upgrade PHP
#33362
Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
Hi:
I've installed ClearOS 5.2 SP1 and after install I do:
Code:


yum upgrade



I need to upgrade to latest PHP available and also install mysqli and gd extensions but doens't know how to, any help or advice on this?
ReynierPM
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33364
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
www.clearfoundation.com/docs/howtos/upgrading_to_5.3.5
or
www.clearfoundation.com/docs/howtos/upgrading_to_5.2.1.7

php-gd and php-mysql can be installed with the following command for 5.2.x (substitute with timb-testing for 5.3.x)
Code:

yum --enablerepo=timb install php-gd php-mysql



The php-mysql RPM contains the mysqli extension
Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33366
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
Thanks for your fast reply Tim but I think php-mysql do not contain the mysqli extension because when I upgrade my phpMyAdmin I get this notice. Also I run this command:
Code:


yum list | grep php --enablerepo=timb-testing 


Not PHP 5.3.x extension are listed to me so what I'm doing wrong?
ReynierPM
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33368
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
It does...whether phpMyAdmin is looking in the right place is another question

Code:

[root@server ~]# rpm -qlp /var/ftp/repo/clearos/5.2/testing/php-mysql-5.3.8-4.clearos.i686.rpm
/etc/php.d/mysql.ini
/etc/php.d/mysqli.ini
/etc/php.d/pdo_mysql.ini
/usr/lib/php/modules/mysql.so
/usr/lib/php/modules/mysqli.so
/usr/lib/php/modules/pdo_mysql.so



You can't run that command like that. It should be
Code:

yum --enablerepo=timb-testing list | grep php

Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
Last Edit: 2011/10/12 12:17 By timb80.
The administrator has disabled public write access.
 
#33369
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
I try this and see what happen to me:
Code:


[root@developer ~]# yum --enablerepo=timb-testing install php53-cli php53-gd php53-mysqlphp53-pdo php53-xml php53-pgsql
Loading "protect-packages" plugin
Loading "kmod" plugin
Setting up Install Process
Parsing package install arguments
No package php53-mysqlphp53-pdo available.
Resolving Dependencies
--> Running transaction check
---> Package php53-gd.i386 0:5.3.3-1.el5_6.1 set to be updated
--> Processing Dependency: php53-common = 5.3.3-1.el5_6.1 for package: php53-gd
---> Package php53-xml.i386 0:5.3.3-1.el5_6.1 set to be updated
---> Package php53-pgsql.i386 0:5.3.3-1.el5_6.1 set to be updated
--> Processing Dependency: php53-pdo for package: php53-pgsql
--> Processing Dependency: libpq.so.4 for package: php53-pgsql
---> Package php53-cli.i386 0:5.3.3-1.el5_6.1 set to be updated
--> Running transaction check
---> Package php53-common.i386 0:5.3.3-1.el5_6.1 set to be updated
---> Package postgresql-libs.i386 0:8.1.23-1.el5_6.1 set to be updated
---> Package php53-pdo.i386 0:5.3.3-1.el5_6.1 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
Error: php53-common conflicts with php-common


How can I fix this?
ReynierPM
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33370
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
Why are you installing 'php53'?? the instructions are in the links I posted, this is a completely different build

You are free to choose either, but stick with one method. If you use my repo it will upgrade the existing php install

Code:

yum --enablerepo=timb-testing install php-gd php-mysql

Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33371
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
In order to install latest Drupal 7.8 release I need PHP + 5.2.x (which come with Clear OS 5.2 SP1) for that reason I need to upgrade my PHP. If I install php-gd php-mysql then this doesn't work with 5.3.8-4
ReynierPM
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33372
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
PHP 5.2.4 + is needed for Drupal 7.8 installation
ReynierPM
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33373
Re:Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
Ok, I get it, my bad just running the command you say all if installed and working, thanks a lot
ReynierPM
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#33374
Re: Uninstall PHP or upgrade PHP 1 Year, 7 Months ago  
That's fine...I run Drupal7 here without problems on 5.2.17

php-gd and php-mysql both exist at version 5.3.8-4 and 5.2.17, please check again. What do you mean 'doesn't work'? doesn't install?

Please provide the output of 'rpm -qa | grep php | sort'

Code:

yum --enablerepo=timb-testing clean all
yum --enablerepo=timb-testing install php-gd php-mysql



EDIT: Glad you have it working
Tim Burgess
Moderator
Posts: 5802
graph
User Offline Click here to see the profile of this user
Last Edit: 2011/10/12 12:34 By timb80.
The administrator has disabled public write access.
 
Go to topPage: 12
  get the latest posts directly to your desktop