How to install php 5, how to install/upgrade php

     
When I run yum install php php-devel php-mysql php-gd php-mbstring, it will install php5.3.

Bạn đang xem: How to install php 5, how to install/upgrade php

yum danh mục installed *php*Loaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.tsukuba.wide.ad.jp * updates: ftp.tsukuba.wide.ad.jpInstalled Packagesphp.x86_64 5.3.3-46.el6_6
updatesI just removed it yum remove php php-cli php-common php-devel php-gd php-mbstring php-mysql php-pdo.

And I tried yum install php56w php56w-devel php56w-mysql php56w-gd php56w-mbstring, but they are not available.

Loaded plugins: fastestmirror, securitySetting up Install ProcessLoading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * epel: ftp.kddilabs.jp * extras: ftp.tsukuba.wide.ad.jp * updates: ftp.tsukuba.wide.ad.jpNo package php56w available.No package php56w-devel available.No package php56w-mysql available.No package php56w-gd available.No package php56w-mbstring available.Error: Nothing to lớn doHow can I install php5.6 on CentOS 6?


php centos6
share
Improve this question
Follow
asked Oct 29, năm ngoái at 10:35
*

shinshin
33333 gold badges88 silver badges1515 bronze badges
add a bình luận |

4 Answers 4


Sorted by: Reset to default
Highest score (default) Date modified (newest first) Date created (oldest first)
4
you would add repo into centos 6 by:

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpmNext,

#yum clean all#yum install php56w php56w-commonI hope help you!


mô tả
Improve this answer
Follow
answered Oct 29, 2015 at 10:41
*

GLifeGLife
6433 bronze badges
địa chỉ a bình luận |
6
CentOS now offers Software Collections (SCL) as a repo installable from base:

yum install centos-release-sclOnce you"ve installed the SCL repo, you can install php 5.6:

yum install rh-php56The CentOS documentation is slightly dated as is the Red Hat Documentation, but newer versions of php, PostgreSQL, MariaDB, MySQL, perl, ruby, etc. Are available. It"s also available on CentOS & RHEL 7 and is theoretically better integrated with the OS. The notes say that adding packages through SCL won"t interfere with the system"s utilities, such as yum.

Xem thêm: Độc thủ lô là gì

To make the SCL version of PHP the default on the command line, run the following as root to add to the default profile:

printf "#!/bin/bash source scl_source enable rh-php56 " > /etc/profile.d/php56.shchmod ugo+r /etc/profile.d/php56.shThis makes using pear to add PHP packages easier by setting $PATH to include /opt/rh/rh-php56/root/...


nói qua
Improve this answer
Follow
edited Dec 5, 2016 at 19:59
answered May 10, 2016 at 19:17
*

LiczyrzepaLiczyrzepa
45544 silver badges1313 bronze badges
3
add a bình luận |
2
You can use REMI"s repository

To enable it, follow these steps:

yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpmedit /etc/yum.repos.d/remi.repo and, under then tag, mix enabled=1yum install php

Please cảnh báo that, doing that, you will update the system-wide php package lớn the 5.6 version. If you need, for some reason, install PHP 5.6 alongside the older, CentOS-distributed relase, you had to bởi a more complex side-by-side installation.


nội dung
Improve this answer
Follow
answered Oct 29, năm ngoái at 10:45
*

shodanshokshodanshok
43.3k66 gold badges9494 silver badges159159 bronze badges
1
địa chỉ a bình luận |
-1
Try installing from specific repo

yum --disablerepo="*" --enablerepo="remi-php56" install php
cốt truyện
Improve this answer
Follow
edited Jun 9, 2017 at 6:40

*

Mr. Raspberry
3,8781212 silver badges3232 bronze badges
answered Jun 9, 2017 at 3:21
CrisMCrisM
111 bronze badge
địa chỉ cửa hàng a bình luận |

Your Answer


Thanks for contributing an answer to hệ thống Fault!

Please be sure to answer the question. Provide details và share your research!

But avoid

Asking for help, clarification, or responding to lớn other answers.Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.


Draft saved
Draft discarded

Sign up or log in


Sign up using Google
Sign up using Facebook
Sign up using e-mail and Password
Submit

Post as a guest


Name
e-mail Required, but never shown


Post as a guest


Name
e-mail

Required, but never shown


Post Your Answer Discard

By clicking “Post Your Answer”, you agree to lớn our terms of service, privacy policy & cookie policy


Not the answer you're looking for? Browse other questions tagged php centos6 or ask your own question.


The Overflow Blog
Featured on Meta
Linked
2
CentOS installing MySQL 5.6.26
1
Package rh-php56 not available on CentOS 6 via centos-release-scl
Related
1
Yum Fails When Installing PHP
2
enable mysql 5.5 for php
1
PHP upgraded khổng lồ 5.3.8 - Can't install/upgrade extensions
1
installing dkms fails khổng lồ work
0
Dependency problems updating Centos 6.4, 64 bit
0
PHP & PCI Compliance
3
php-devel failed on installation red-hat 6
0
CentOS 5.5 php-posix with dependency error php53-common
0
RHSCL - php55-tidy extension not available via RHSCL
Hot Network Questions more hot questions

Question feed
Subscribe to lớn RSS
Question feed to lớn subscribe to this RSS feed, copy & paste this URL into your RSS reader.


hệ thống Fault
Company
Stack Exchange Network
Site thiết kế / logo © 2022 Stack Exchange Inc; user contributions licensed under cc by-sa. Rev2022.6.14.42367


Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device & disclose information in accordance with our Cookie Policy.


Chuyên mục: Domain Hosting