Home > Backend Development > PHP Tutorial > ubuntu atp安装php后无法运行 提示502

ubuntu atp安装php后无法运行 提示502

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-20 12:32:52
Original
1136 people have browsed it

apt安装完成后php服务正常启动,但运行php程序提示502首先来让我们看看之前得配置。关于PHP一块的配置。location ~ \.php$ {try_files $uri =404;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fastcgi_params;}问题其实出现在 fastcgi_pass得配置上面。在ubuntu 12.10安装了php5-fpm之后。我们可以去/etc/php5/fpm/pool.d/www.conf里面找到这样一条代码:listen = /var/run/php5-fpm.sock这个是使用unix得方式来使用php5-fpm得。这个时候。我们得php配置改成listen = 127.0.0.1:9000,注销原来的即可
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template