1. WebTatic 저장소 설치
2. yum 으로 패키지 설치
3. 부팅 시 php-fpm service 활성화
4. php-fpm 구동
5. php-fpm 설정
#CentOS 6 rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm #CentOS 7 rpm -Uvh http://mirror.premi.st/epel/7/x86_64/e/epel-release-7-5.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php56w-cli php56w-fpm php56w-mbstring php56w-mcrypt php56w-mysql php56w-opcache php56w-pdo php56w-pear php56w-xml
#CentOS 6 chkconfig php-fpm on #CentOS 7 systemctl enable php-fpm.service
#CentOS 6 service start php-fpm #CentOS 7 systemctl start php-fpm.service
vi /etc/php-fpm.d/www.conf [root@hjshuweb php-fpm.d]# cat www.conf | grep -v ";" [www] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 listen.owner = app listen.group = app listen.mode = 0666 user = app pm = dynamic pm.max_children = 50 pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 35 slowlog = /var/log/php-fpm/www-slow.log chdir = /home/app/HOME/nginx/html/ catch_workers_output = yes php_admin_value[error_log] = /var/log/php-fpm/www-error.log php_admin_flag[log_errors] = on php_value[session.save_handler] = files php_value[session.save_path] = /var/lib/php/session php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
'WEB개발 > nginx' 카테고리의 다른 글
nginx와 php-fpm간 connection 실패 시 조치 방법 (0) | 2019.01.04 |
---|---|
nginx compile 설치 방법 ( CentOS ) (0) | 2019.01.04 |