DockerもHHVMも使いません。
最小構成です。
・nginx
・php7 + opcache + apcu
・mariaDB
===PHP-FPM設定===
vi /etc/php-fpm.d/www.conf
user = nginx
group = nginx
listen = 127.0.0.1:9000
listen.owner = nginx
listen.group = nginx
===NGINX設定===
vi /etc/nginx/conf.d/default.conf
server {
listen 80;
server_name $hostname;
root /var/www;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
}
0 件のコメント:
コメントを投稿