본문 바로가기

WEB/Nginx

(4)
nginx + php 에러 상황 2021/06/05 19:59:52 [crit] 8521#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.0.3, server: localhost, request: "GET /hello.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.0.2:7000" user, group 설정 에러 -> /etc/php-fpm.d/www.conf -> nginx 를 기동하는 유저 그룹명을 적어야 함 user = nginx group = nginx 블로그..
yum install nginx cat
PHP 7.4 설치 가이드 (NginX + PHP 환경) php-7.4.15 설치 방법 (CENTOS 8) dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm rpm -qa | grep epel dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm rpm -qa | grep remi dnf module list php dnf module enable php:remi-7.4 dnf install php php-cli php-common php-7.4.15 설치 방법 (CENTOS 7) CENT7 : dnf install https://dl.fedoraproject.org/pub/epel/epel-re..
Nginx 설치 - 소스 컴파일 방식 참고 사이트 지원OS : nginx.org/en/linux_packages.html 설치 파일 Download : nginx.org/en/download.html 설치 가이드 01 : sarc.io/index.php/nginx/57-linux-nginx-1-4-5 설치 가이드 02 : opentutorials.org/module/384/4511 테스트 환경 OS : CentOS 8 Nginx Version : 1.20.0 (stable version) 필수 패키지 gcc, gcc-c++ zlib, zlib-devel openssl, openssl-devel pcre, pcre-devel 설치 과정 소스 파일 압축 해제 configure 을 통해 컴파일을 수행한다 컴파일 명령어 (http, https 서비..