
php8.1-fpm.conf를 활성화하자마자 모든 사이트가 php7.4-fpm 사용에서 php8.1-fpm으로 전환됩니다. 내 모든 vhost 파일에는 <VirtualHost *:80>
다음과 같은 블록 에 fpm 처리기가 추가되어 있습니다.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.somesite.info
# Only if there will be a temporary subdomain:
DocumentRoot /srv/www/somesite.info/web/
ErrorLog /srv/www/somesite.info/logs/error.log
CustomLog /srv/www/somesite.info/logs/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.somesite.info
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost"
</FilesMatch>
</VirtualHost>
# Handle all other domains/subdomains
<VirtualHost *:80>
ServerName somesite.info
Redirect 301 / http://www.somesite.info/
RewriteEngine on
RewriteCond %{SERVER_NAME} =somesite.info
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
각 php-fpm에 대해 7.4와 8.1을 사용하고 있습니다. 구성 오류가 발생할 수 있는 위치를 추적하기 위한 단서를 찾고 있습니다. 필요한 모듈을 활성화했습니다.이 문서.