Skip to content

CHICPRO

  • Life Log
  • Cycling Log
  • Photo Log
    • Portrait
    • Landscape
    • Flower
    • Etc
  • Coding Log
  • Information

CentOS 6.7에서 yum을 이용한 PHP7 설치

2015-10-22 by 편리

CentOS 6.7에 yum 을 이용해 PHP7 을 설치해본다. 직접 소스파일을 컴파일해서 설치를 할 수도 있지만 테스트용으로 잠깐 사용하는 서버에 컴파일 설치는 시간이 많이 걸리기 때문에 무리가 있다고 생각된다. 다행히 yum 을 이용하면 비교적 간단하게 PHP7을 서버에 설치할 수가 있다.

# wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
# rpm -Uvh remi-release-6.rpm
# yum install php70 php70-php-fpm php70-php-gd php70-php-imap php70-php-ldap php70-php-mbstring php70-php-mcrypt php70-php-mysqlnd php70-php-opcache php70-php-pdo php70-php-dba php70-php-bcmath php70-php-soap php70-php-xml php70-php-xmlrpc

위의 과정대로 설치를 진행하면 된다. 설치할 PHP7 패키지는 아래를 참고해서 추가하거나 삭제를 해도 된다. 이렇게 설치를 한 경우 설정 파일은 아래의 위치에 존재한다. 추가로 nginx, mariadb 등을 yum을 통해 설치하려면 https://chicpro.dev/12469 를 참고하면 된다.

config: /etc/opt/remi/php70/php-fpm.conf
config: /etc/opt/remi/php70/sysconfig/php-fpm
pidfile: /var/opt/remi/php70/run/php-fpm/php-fpm.pid

php70-php-pecl-propro-devel.x86_64 : php70-php-pecl-propro developer files (header)
php70-php-pecl-raphf-devel.x86_64 : php70-php-pecl-raphf developer files (header)
php70-php-pecl-xmldiff-devel.x86_64 : php70-php-pecl-xmldiff developer files (header)
php70-php-yaconf-devel.x86_64 : php70-php-yaconf developer files (header)
php70-runtime.x86_64 : Package that handles php70 Software Collection.
php70-scldevel.x86_64 : Package shipping development files for php70
php70.x86_64 : Package that installs PHP 7.0
php70-build.x86_64 : Package shipping basic build configuration
php70-php.x86_64 : PHP scripting language for creating dynamic web sites
php70-php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php70-php-cli.x86_64 : Command-line interface for PHP
php70-php-common.x86_64 : Common files for PHP
php70-php-dba.x86_64 : A database abstraction layer module for PHP applications
php70-php-dbg.x86_64 : The interactive PHP debugger
php70-php-devel.x86_64 : Files needed for building PHP extensions
php70-php-embedded.x86_64 : PHP library for embedding in applications
php70-php-enchant.x86_64 : Enchant spelling extension for PHP applications
php70-php-fpm.x86_64 : PHP FastCGI Process Manager
php70-php-gd.x86_64 : A module for PHP applications for using the gd graphics library
php70-php-gmp.x86_64 : A module for PHP applications for using the GNU MP library
php70-php-horde-horde-lz4.x86_64 : Horde LZ4 Compression Extension
php70-php-imap.x86_64 : A module for PHP applications that use IMAP
php70-php-interbase.x86_64 : A module for PHP applications that use Interbase/Firebird databases
php70-php-intl.x86_64 : Internationalization extension for PHP applications
php70-php-json.x86_64 : JavaScript Object Notation extension for PHP
php70-php-ldap.x86_64 : A module for PHP applications that use LDAP
php70-php-litespeed.x86_64 : LiteSpeed Web Server PHP support
php70-php-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
php70-php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php70-php-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
php70-php-odbc.x86_64 : A module for PHP applications that use ODBC databases
php70-php-opcache.x86_64 : The Zend OPcache
php70-php-pdo.x86_64 : A database access abstraction module for PHP applications
php70-php-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases
php70-php-pear.noarch : PHP Extension and Application Repository framework
php70-php-pecl-apcu.x86_64 : APC User Cache
php70-php-pecl-apcu-devel.x86_64 : APCu developer files (header)
php70-php-pecl-apfd.x86_64 : Always Populate Form Data
php70-php-pecl-apm.x86_64 : Alternative PHP Monitor
php70-php-pecl-gender.x86_64 : Gender Extension
php70-php-pecl-geoip.x86_64 : Extension to map IP addresses to geographic places
php70-php-pecl-hprose.x86_64 : Hprose for PHP
php70-php-pecl-hrtime.x86_64 : High resolution timing
php70-php-pecl-json-post.x86_64 : JSON POST handler
php70-php-pecl-libsodium.x86_64 : Wrapper for the Sodium cryptographic library
php70-php-pecl-lzf.x86_64 : Extension to handle LZF de/compression
php70-php-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon
php70-php-pecl-msgpack.x86_64 : API for communicating with MessagePack serialization
php70-php-pecl-msgpack-devel.x86_64 : MessagePack developer files (header)
php70-php-pecl-mysql.x86_64 : MySQL database access functions
php70-php-pecl-propro.x86_64 : Property proxy
php70-php-pecl-raphf.x86_64 : Resource and persistent handles factory
php70-php-pecl-rrd.x86_64 : PHP Bindings for rrdtool
php70-php-pecl-selinux.x86_64 : SELinux binding for PHP scripting language
php70-php-pecl-ssdeep.x86_64 : Wrapper for libfuzzy library
php70-php-pecl-swoole.x86_64 : PHP’s asynchronous concurrent distributed networking framework
php70-php-pecl-termbox.x86_64 : A termbox wrapper for PHP
php70-php-pecl-uploadprogress.x86_64 : An extension to track progress of a file upload
php70-php-pecl-uuid.x86_64 : Universally Unique Identifier extension for PHP
php70-php-pecl-xattr.x86_64 : Extended attributes
php70-php-pecl-xmldiff.x86_64 : XML diff and merge
php70-php-pecl-xxtea.x86_64 : XXTEA encryption algorithm extension for PHP
php70-php-pecl-yac.x86_64 : Lockless user data cache
php70-php-pecl-yaf.x86_64 : Yet Another Framework
php70-php-pecl-yaml.x86_64 : PHP Bindings for yaml
php70-php-pecl-yar.x86_64 : Light, concurrent RPC framework
php70-php-pecl-zip.x86_64 : Une extension de gestion des ZIP
php70-php-pgsql.x86_64 : A PostgreSQL database module for PHP
php70-php-process.x86_64 : Modules for PHP script using system process interfaces
php70-php-pspell.x86_64 : A module for PHP applications for using pspell interfaces
php70-php-recode.x86_64 : A module for PHP applications for using the recode library
php70-php-smbclient.x86_64 : PHP wrapper for libsmbclient
php70-php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices
php70-php-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php70-php-tidy.x86_64 : Standard PHP module provides tidy library support
php70-php-xml.x86_64 : A module for PHP applications which use XML
php70-php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
php70-php-yaconf.x86_64 : Yet Another Configurations Container

며칠 전 PHP7 RC5 버전이 공개되었다. 아마도 다음 쯤에는 PHP7 정식 버전이 공개되지 않을까 싶다.

Post navigation

Previous Post:

그냥 달리고 싶었어

Next Post:

한계는 시도하지 않았기 때문에 만들어진다.

2 Commments

  1. fear says:
    2017-04-12 at 22:27

    서버 CentOS 6.8 다시 설치하고 nginx+php7+mariadb 구성 중인데
    위 내용 1, 2, 3대로 진행해도 php7 설치가 안되네요.

    No package php70 available.
    No package php70-php-fpm available.
    No package php70-php-gd available.
    No package php70-php-imap available.
    No package php70-php-ldap available.
    No package php70-php-mbstring available.
    No package php70-php-mcrypt available.
    No package php70-php-mysqlnd available.
    No package php70-php-opcache available.
    No package php70-php-pdo available.
    No package php70-php-dba available.
    No package php70-php-bcmath available.
    No package php70-php-soap available.
    No package php70-php-xml available.
    No package php70-php-xmlrpc available.

    이렇게 나오는데 해결 방법이 있을까요. 사이트는 죽어있고 ㅜㅜ

    Reply
    1. 편리 says:
      2017-04-13 at 11:24

      해당 repo 의 패키지명이 변경됐거나 서비스 장애일 수도 있습니다.
      remi repo 가 안된다면 다른 repo를 찾으셔서 시도해 보셔야 합니다.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • php 배열 연산에서 + 와 array_merge 의 차이
  • pcntl_fork 를 이용한 다중 프로세스 실행
  • 아이폰 단축어를 이용하여 주중 공휴일엔 알람 울리지 않게 하기
  • 구글 캘린더 전체일정 재동기화
  • OpenLiteSpeed 웹서버에 HTTP 인증 적용
  • OpenLiteSpeed 웹어드민 도메인 연결
  • WireGuard를 이용한 VPN 환경 구축
  • Ubuntu 22.04 서버에 OpenLiteSpeed 웹서버 세팅
  • 맥 vim 세팅
  • 우분투 시스템 터미널쉘 zsh 로 변경

Recent Comments

  • 편리 on 업무관리용 그누보드 게시판 스킨
  • 임종섭 on 업무관리용 그누보드 게시판 스킨
  • 캐논 5D 펌웨어 | Dslr 펌웨어 업그레이드 방법 82 개의 베스트 답변 on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • Top 5 캐논 5D 펌웨어 Top 89 Best Answers on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • 편리 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 임팀장 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 편리 on Notepad++ NppFTP 플러그인 수동 설치
  • paul-j on Notepad++ NppFTP 플러그인 수동 설치
  • YS on Windows 10 iCloud 사진 저장 폴더 변경
  • 편리 on Docker를 이용한 Centos7 + httpd + php 5.4 개발환경 구축

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 CHICPRO | Built using WordPress and SuperbThemes