본문 바로가기

반응형

PHP-FPM

[리눅스] NGING에서 PHP-FPM 상태를 활성화하고 모니터링하는 방법 NGING에서 PHP-FPM 상태를 활성화하고 모니터링하는 방법 nginx 설정 vim /etc/nginx/conf.d/default.conf $ vim /etc/nginx/conf.d/default.conf ... # nginx, php-fpm status location ~ ^/(status|ping)$ { fastcgi_pass unix:/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; include fastcgi_params; allow 127.0.0.1; allow 10.11.0.0/16; allow 10.21.0.0/16; allow .. 더보기
[리눅스] NGINX 및 PHP-FPM access logs 설정 NGINX 및 PHP-FPM 액세스 로그 설정 nginx access logs format $ vim /etc/nginx/nginx.conf ... log_format main '$http_x_forwarded_for - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$remote_addr"' ' REQ_TIME: $request_time s - CONNECT_TIME: $upstream_connect_time s - PHP-FPM_STATUS: $upstream_status'; $ nginx -t nginx: the configuration file /etc/ng.. 더보기
[리눅스] 우분투에서 PHP-FPM 최신(php-fpm 8.1) 버전 설치하기 우분투에서 PHP-FPM 최신(php-fpm 8.1) 버전 설치하기 php-fpm : PHP FastCGI Process Manager 테스트 환경 $ lsb_release -d Description: Ubuntu 22.04.2 LTS $ uname -m x86_64 $ getconf LONG_BIT 64 PPA(Personal Package Archive) 리포지토리를 시스템의 패키지 소스 목록에 추가 sudo add-apt-repository ppa:ondrej/php apt-get update -y PHP 8 설치 php(php-fpm) 8.1 설치 sudo apt-get install -y php8.1 php8.1-dev php8.1-cli php8.1-fpm php8.1-common php8.1.. 더보기

728x90
반응형