Reply to comment
PHP5 for CentOS 4.4
I’m using right now CentoS 4.4 and PHP5 is not yet part of the rpm package. I can always download the source and compile it or search some pre-pack PHP5 RPM and install it.
Alternatively, here’s how to do it using the good old yum one liner command.
- Edit CentOS-Base.repo
vi /etc/yum.repos.d/CentOS-Base.repo - Enable CentOSPlus by changing:
to:
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
- Run yum
yum install php– to freshly install PHP5
Or
yum update php- to update PHP5 (in case PHP4 was already installed) - Restart Apache
/etc/init.d/httpd restart
- Add new comment
- 4821 reads
Recent comments
4 days 22 hours ago
2 weeks 1 day ago
2 weeks 5 days ago
2 weeks 5 days ago
2 weeks 5 days ago
4 weeks 2 days ago
7 weeks 3 days ago
10 weeks 17 hours ago
16 weeks 22 hours ago
16 weeks 1 day ago