Child pages
  • RHEL/CentOS 와 Amazon Linux 에 php 7 설치

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


RHEL/CentOS 에 설치

Warning

WebTatic 의 PHP 는 mod_php 로 사용할 경우 보안 문제가 있으므로 php-fpm 으로 사용하는 것을 권장합니다.

...

  1. php package 설치하며 속도향상을 위해 OpCode cache 도 포함합니다.

    Code Block
    yum install php72w-cli php72w-common php72w-gd php72w-mbstring  php72w-mysqlnd php72w-pdo php72w-fpm php72w-xml
    Expand
    title예전 버전 설치 Click here to expand...
    Code Block
    languagebash
    titlePHP 7.1
    yum install php71w-cli php71w-common php71w-gd php71w-mbstring  php71w-mysqlnd php71w-pdo php71w-fpm php71w-xml
    Expand
    Code Block
    languagebash
    titlePHP 7.0
    yum install php70w-cli php70w-common php70w-gd php70w-mbstring  php70w-mysqlnd php70w-pdo php70w-fpm php70w-xml
    Code Block
    languagebash
    titlePHP 5.6
    yum install php56w-cli php56w-common php56w-gdphp56w-mbstring php56w-mcrypt php56w-mysqlnd  php56w-pdo php56w-fpm php56w-xml
    Note

    Laravel framework 을 사용한다면 opensslmcrypt 패키지를 꼭 설치해야 합니다.

  2.  웹서버 재구동

    Code Block
    service nginx restart
    Code Block
    systemctl restart nginx 

Amazon Linux

  1. 패키지 설치

    Code Block
    yum install php71-cli php71-common php71-gd php71-mbstring  php71-mysqlnd php71-pdo php71-fpm php71-xml php71-opcache php71-zip
  2. fpm 서비스 자동 구동

    Code Block
    chkconfig php-fpm on
    service php-fpm restart

같이 보기

  • php 설치 gist

    Gist
    urlhttps://gist.github.com/lesstif/ea1f27005c2d51bcdd329346d2674971