Nginx PHPfpm
phpfpm配置文件:
termux-chroot
vim /etc/php-fpm.d/www.conf
nginx配置文件:
在proot环境下, 然后编辑配置文件nginx.conf
vim /etc/nginx/nginx.conf
nginx 根目录:
root html; #根目录,相对于安装目录
index index.html index.htm; #默认主页
Nginx 配置文件:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
server_name localhost;
root /data/data/com.termux/files/usr/share/nginx/html;
index index.html index.htm;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /data/data/com.termux/files/usr/share/nginx/html;
}
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
}
}