Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 10:00:44 AM

Pages: [1]   Go Down
  Print  
Author Topic: php5 help  (Read 687 times)
s1nister
Newbie
*
Offline Offline

Posts: 4


« on: June 19, 2007, 08:52:52 PM »

Hey,

So I found a nice post about upgrading to php 5.

http://www.lunarforums.com/index.php/topic,41213.0.html
Quote:
"
############################
# install yum:
############################
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-

4.2.1.i386.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
yum makecache

###########################
# enable centosplus
###########################
   vim /etc/yum.repos.d/CentOS-Base.repo
   enabled=1

###########################
# install gcc
###########################
yum remove glibc-dummy-centos-4
yum install gcc
yum install gcc-c++

###########################
# upgrade httpd from 2.0.52 -> 2.0.59, php5 mysql5
###########################
yum update httpd
yum update php"

But even after following those direction up to the portion about php5 I get this error:
Error: Missing Dependency: php-common = 5.1.6-3.el4s1.5 is needed by package php-xml

And my phpinfo() still says php4

How do I fix it? I need php5 to run an API. Any help would be appreciate, thanks.
Logged
s1nister
Newbie
*
Offline Offline

Posts: 4


« Reply #1 on: June 19, 2007, 09:05:15 PM »

yum update

is your friend.

Please close
Logged
vivalite
Intergalactic Cowboy
*****
Offline Offline

Posts: 52


« Reply #2 on: June 19, 2007, 10:40:16 PM »

you need to stop apache 1st then upgrade php etc.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #3 on: June 21, 2007, 04:37:42 AM »


you need to stop apache 1st then upgrade php etc.

Usually, Apache restart is needed only after PHP was upgraded to get Apache loading the new mod_php5 module.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to: