어제와 똑같이 살면서 다른 미래를 기대하지 말자

[CentOS] APM (PHP 5.6.x 설치) 본문

IT관심분야/Linux

[CentOS] APM (PHP 5.6.x 설치)

플랜액터 2016. 4. 12. 15:27

CentOS PHP 5.6.x 설치할 경우


PHP 5.6.20 설치


[CentOS 7]

# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm


[CentOS 6]

# http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

# http://rpms.famillecollet.com/enterprise/remi-release-6.rpm


remi repo 설치/설정


# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

/etc/yum.repos.d/ 밑에 remi.repo, remi-php70.repo 등이 생성됨


# vi /etc/yum.repos.d/remi.repo 수정

[remi]

name=Remi's RPM repository for Enterprise Linux 7 - $basearch

#baseurl=http://rpms.remirepo.net/enterprise/7/remi/$basearch/

mirrorlist=http://rpms.remirepo.net/enterprise/7/remi/mirror

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


[remi-php55]

name=Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - $basearch

#baseurl=http://rpms.remirepo.net/enterprise/7/php55/$basearch/

mirrorlist=http://rpms.remirepo.net/enterprise/7/php55/mirror

# NOTICE: common dependencies are in "remi-safe"

enabled=0

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


[remi-php56]

name=Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - $basearch

#baseurl=http://rpms.remirepo.net/enterprise/7/php56/$basearch/

mirrorlist=http://rpms.remirepo.net/enterprise/7/php56/mirror

# NOTICE: common dependencies are in "remi-safe"

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


...


PHP 모듈 설치

# yum install php php-common php-cli php-fpm php-mysqlnd php-gd php-mbstring php-mcrypt php-opcache php-pear php-xml php-xmlrpc php-embedded php-bcmath php-imap php-pdo php-pecl-imagick php-soap php-devel php-ldap php-intl php-pecl-apcu php-snmp php-tidy php-dba php-zip


참고

https://www.mojowill.com/geek/howto-install-php-5-4-5-5-or-5-6-on-centos-6-and-centos-7/

https://www.digitalocean.com/community/questions/how-to-install-php-5-6-on-centos-7-0-x64

Comments