advanced noob needs help with rpm install of php 5
primesuspect
Beepin n' BoopinDetroit, MI Icrontian
Hey guys.
I'm working on upgrading php 4 on one of my servers to php 5. It took me ages to even find the right package. This is RHEL 4 x86-64 SMP.
I FINALLY found a package for php 5 built for x86-64. Now I just need to figure out how to upgrade.
when I run
[php]rpm -i php-5.1.4-1.x86_64.rpm[/php]
i get:
[php]file /etc/httpd/conf.d/php.conf from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /etc/php.ini from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /usr/bin/php from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /var/www/icons/php.gif from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9[/php]
ahh what do I do?
I'm working on upgrading php 4 on one of my servers to php 5. It took me ages to even find the right package. This is RHEL 4 x86-64 SMP.
I FINALLY found a package for php 5 built for x86-64. Now I just need to figure out how to upgrade.
when I run
[php]rpm -i php-5.1.4-1.x86_64.rpm[/php]
i get:
[php]file /etc/httpd/conf.d/php.conf from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /etc/php.ini from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /usr/bin/php from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9
file /var/www/icons/php.gif from install of php-5.1.4-1 conflicts with file from package php-4.3.9-3.9[/php]
ahh what do I do?
0
Comments
Did you install directly from RPMs or did you use yum or up2date?
What about using rpm -U php-5.1.4-1.x86_64.rpm, upgrading rather than installing?
[php]rpm -U php-5.1.4-1.x86_64.rpm
error: Failed dependencies: php = 4.3.9-3.9 is needed by (installed) php-pear-4.3.9-3.9.x86_64
[/php]
and when I try to upgrade the php-pear package, I get:
[php] rpm -U php-pear-1.4.6-2.noarch.rpm
error: Failed dependencies: php >= 5.1.0-1 is needed by php-pear-1.4.6-2.noarch[/php]
yay!
This is why I prefer compiling php by hand instead of RPMs. There's a lot less mess.
EDIT: you beat me to it.
EDIT2: Trying them both in one line should work
BTW, get on MSN plz
[php]libmysqlclient.so.15()(64bit) is needed by php-mysql-5.1.4-1.x86_64
libsqlite3.so.0()(64bit) is needed by php-pdo-5.1.4-1.x86_64[/php]
i can't find those... arrrgh..
this is RHEL 4 so it doesn't have yum. I'm using the RHEL repository.
The second one should beresolved by sqlite-devel
http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/sqlite-devel-3.2.2-1.x86_64.rpm
http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/mysqlclient10-3.23.58-4.RHEL4.1.x86_64.rpm
http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/mysql-devel-4.1.12-3.RHEL4.1.x86_64.rpm
[php] rpm -i sqlite-devel-3.2.2-1.x86_64.rpm
warning: sqlite-devel-3.2.2-1.x86_64.rpm: V3 DSA signature: NOKEY, key ID 443e1821
error: Failed dependencies:
sqlite = 3.2.2-1 is needed by sqlite-devel-3.2.2-1.x86_64
[/php]
http://isoredirect.centos.org/centos/4/os/x86_64/CentOS/RPMS/sqlite-3.2.2-1.x86_64.rpm
-drasnor
We're back online. We decided to screw RPM and I compiled Apache and PHP by hand.
Case closed - the answer : get someone who knows what they're doing to compile everything from source
I have the same problem. I need some help to upgrade PHP 4 to PHP 5.1
I installed PHP-4.3.9 and mysql-4.1.20-2.RHEL4.1.0.1 in my Redhat Server (Redhat 4 Enterprise).
My PHP packages installed in my Redhat server:
rpm -qa | grep php
php-gd-4.3.9-3.22.9
php-snmp-4.3.9-3.22.9
php-4.3.9-3.22.9
php-devel-4.3.9-3.22.9
php-mysql-4.3.9-3.22.9
php-ldap-4.3.9-3.22.9
php-pear-4.3.9-3.22.9
php-mbstring-4.3.9-3.22.9
I installed Nagios, Centreon, Nagvis et Cacti using these packages.
When I try to update to PHP-5.1.4, I get:
rpm -U php-5.1.4-1.esp1.x86_64.rpm php-snmp-5.1.4-1.esp1.x86_64.rpm php-ldap-5.1.4-1.esp1.x86_64.rpm php-mysql-5.1.4-1.esp1.x86_64.rpm php-mbstring-5.1.4-1.esp1.x86_64.rpm php-devel-5.1.4-1.esp1.x86_64.rpm php-gd-5.1.4-1.esp1.x86_64.rpm php-pdo-5.1.4-1.esp1.x86_64.rpm
error: Failed dependencies:
php = 4.3.9-3.22.9 is needed by (installed) php-pear-4.3.9-3.22.9.x86_64
I don't find the package php-pear-5.1.4-1.x86_64.rpm and when I try to upgrade the php-pear package, I get: rpm -U php-pear-1.4.6-2.noarch.rpm
warning: php-pear-1.4.6-2.noarch.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
php >= 5.1.0-1 is needed by php-pear-1.4.6-2.noarch
How can I resolv it ?
Thank you very much for your help
Flipmode