
LNPP(linux nginx PostgreSQL PHP) 环境搭建
majinbo111
这个作者很懒,什么都没留下…
展开
-
nginx 配置FastCGI的 root 路径错误
浏览器访问:http://test.com配置好nginx里的php-fpm,之后重启nginx没有提示任何报错,然后如上访问浏览器,一直都是这个错误:tail -f /usr/local/var/log/nginx/error.log2020/02/29 15:05:13 [error] 1074#0: *70 FastCGI sent in stderr: "Primary scri...原创 2020-02-29 15:26:25 · 725 阅读 · 0 评论 -
ubuntu 下的nginx 安装
1、软件源路劲/etc/apt/sources.list2、需要填加的nginx软件源deb http://extras.ubuntu.com/ubuntu trusty maindeb-src http://extras.ubuntu.com/ubuntu trusty maindeb http://nginx.org/package原创 2014-11-16 19:54:47 · 626 阅读 · 0 评论 -
Ubuntu14.04 配置nginx 与 php-fpm
1、什么是CGI? CGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。2、什么是FastCGI?FastCGI像是一个常驻(long-live)型的CGI,它可以一直执行着,只要激活后,不会每次都要花费时间去fork一次(这原创 2014-12-06 20:12:49 · 2540 阅读 · 0 评论 -
Ubuntu下安装PostgreSQL-9.3
1、查看PostgreSQL的官网的帮助http://www.postgresql.org/download/linux/ubuntu/2、安装PostgreSQL数据库apt-get install postgresql-9.3apt-get install postgresql-9.3 postgresql-client-9.3 pos原创 2014-12-06 16:56:18 · 2562 阅读 · 0 评论 -
nginx、fastCGI、php-fpm关系梳理
前言: Linux下搭建nginx+php+memached(LPMN)的时候,nginx.conf中配需要配置fastCGI,php需要安装php-fpm扩展并启动php-fpm守护进程,nginx才可以解析php脚本。那么,这样配置的背后原理是什么?nginx、fastCGI、php-fpm之间又有什么关系呢?博主一直有这样的疑惑,由于无法理清nginx、php-fpm之间的关系,遇到ngin原创 2016-11-25 17:23:43 · 343 阅读 · 0 评论 -
nginx php fastCGI配置
location ~ \.php$ {root /home/xxx/xxx; fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_index index.php;#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;fastcgi_原创 2016-11-26 00:16:12 · 315 阅读 · 0 评论