[CentOS 7] PHP에 OPCache 설치하기
·
Development/PHP
OPCache는 성능향상을 위해서 사용하는 확장 기능이다. 더보기 PHP는 컴파일 > 실행 > 결과의 프로세스를 거치게 되는데, OPcache는 컴파일된 코드를 바이너리로 메모리에 캐싱해 결과값을 빠르게 얻을 수 있는 역할을 한다. 확장 유틸리티 설치 # yum install yum-utils Opcache 확장 프로그램 설치 # yum install php-opcache PHP 버전 확인 # php -v 실행 결과 opcache.ini 파일 편집 # vi /etc/php.d/10-opcache.ini 다음을 주석처리 해제한다. opcache.enable_cli=1 opcache.memory_consumption=128 opcache.interned_strings_buffer=8 opcache.max_a..
[CentOS 7] PHP 7.4 설치하기
·
Development/PHP
centOS 7에는 기본적으로 mysql 5 버전과 php 5.4버전이 설치되어있는 것 같다. 하지만 버전 업그레이드가 필요하여 7.4로 재설치하였다. 🔨 맨 처음, 소스 파일 컴파일로 설치하려고 했으나 의존성 문제인지 꼬이고 잘 실행되지않아서 yum 으로 패키지 설치해주었다 😭😭 EPEL, REMI 설치 # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm # yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm # ..