安装nginx,info.php,connect()无法打开php5-fpm.sock

时间:2016-01-01 23:58:39

标签: php linux ubuntu nginx rtmp

试图访问:

mydomain.name/info.php

错误日志:

  

2016/01/01 18:23:00 [暴击] 15592#0:* 1连接()到unix:/var/run/php5-fpm.sock失败(13:权限被拒绝)   连接到上游,client:censoredipaddress1,server:   censoredipaddress2,请求:“GET /info.php HTTP / 1.1”,上游:   “fastcgi:// unix:/var/run/php5-fpm.sock:”,主持人:“censoredipaddress3”

截尾地址:

1:测试家用电脑的ip地址

2:ipaddress到nginx VPS

3:域名

NGinx(从添加了RTMP模块的源代码安装)

自定义:basic_auth,RTMP

Ref. 1A: https://obsproject.com/forum/resources/how-to-set-up-your-own-private-rtmp-server-using-nginx.50/

Linux EngineX MySQL PHP(在Ubuntu 15 x64上)

Ref. 2A: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04

<<< MISC注释/评论>>>

我注意到NGinx的源代码构建,html的实际文件路径是/ usr / local / nginx / html和名为“websites_enabled”的文件夹等不存在(据我所知)。

使用时(我没有使用它来安装nginx,因为它不允许我轻松添加RTMP,如果我必须这样做,那么请解释如何以这种方式安装RTMP)

apt-get install nginx

sites_enabled文件结构存在,预期的/ usr / shared和/ www目录也是如此。

我尝试了一些其他修复程序,这些修改使我包含了一些像www-data这样的东西,但我没有使用www-data(我认为在我的html文件中找到了www /)

我正在尝试将PHP添加到我的RTMP流功能中,因为我无法使用apt-get install nginx安装RTMP,如果我被迫使用apt-get install nginx,我将需要帮助安装RTMP才能够使用php。

提前感谢您!

0 个答案:

没有答案