AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] 已解决!php-fpm配置弄错了,面板,网站都502 Bad Gateway |
|
---|---|
hyb9512 |
hyb9512 发表于 2014-03-05 14:24:25
本帖最后由 hyb9512 于 2014-3-7 00:40 编辑
之前都一直好好的,今天网站打不开提示 Fatal error: Out of memory (allocated 786432) (tried to allocate 98304 bytes) in 这样的错误。 我自己百度了一下说是修改php-fpm大小。我就去面板改了php-fpm的参数。就变成这样了。访问网站跟面板后台都是提示 502 Bad Gateway现在有什么办法可以恢复吗?有谁知道的帮帮忙,很急啊。现在这里谢谢了!!! ------------------------------------------------------------------------------------------------------------------------------- 折腾了我两天,终于解决了。哈哈,只怪自己是小白来的。知道是改某个文件就可以了。可就是不知道要改的文件在哪里。 说说我怎么解决的吧。方便后来人。 就是修改/etc/php.ini 这个文件就可以了。自己哪里改错了。改回来就可以了。忘记了的可以下这个php.in恢复默认配置文件。这个帖子里有:http://amysql.com/bbs/post-624-2-1.htm 懒人直接下载这个一样的,http://amysql.com/file/AMH/4.0/conf.zip 最后,谢谢几位回复解答的朋友,真心感谢您们!!!!!!!!!!!
点赞,加油! (2分)
2014-03-05 14:24:25 1
|
Kvm |
php.ini内存限制多少。
/etc/init.d/amh-start 正常?
回复
2014-03-05 15:45:22 2
|
hyb9512 |
我就在面板php配置里改了php-fpm值为140,原来的默认值是115. /etc/init.d/amh-start试过了。还是一样502.vps重启也是一样。该怎么解决啊
回复
2014-03-05 18:37:57 3
|
Kvm |
引用: 把/etc/init.d/amh-start结果都贴出来看看
回复
2014-03-05 20:09:33 4
|
hyb9512 |
[LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [OK] Nginx stop ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com Shutting down MySQL. SUCCESS! [OK] MySQL stop /etc/init.d/amh-start: line 10: kill: (1114) - No such process /etc/init.d/amh-start: line 10: kill: (1139) - No such process /etc/init.d/amh-start: line 10: kill: (1180) - No such process /etc/init.d/amh-start: line 10: kill: (1244) - No such process /etc/init.d/amh-start: line 10: kill: (1245) - No such process /etc/init.d/amh-start: line 10: kill: (1248) - No such process /etc/init.d/amh-start: line 10: kill: (1273) - No such process /etc/init.d/amh-start: line 10: kill: (1274) - No such process /etc/init.d/amh-start: line 10: kill: (1275) - No such process ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com Starting MySQL. SUCCESS! [OK] MySQL start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] All PHP start... ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxx PHP start... [OK] xxxx PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxxx start... [OK] xxxxx PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxxx PHP start... [OK] xxxxx PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxx PHP start... [OK] xxxxx PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxxx PHP start... [OK] xxxxx PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxxx PHP start... [OK] xxxxx PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxx.com PHP start... [OK] xxxx.com PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxxx.com PHP start... [OK] xxxx.com PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxx.com PHP start... [OK] xxxx.com PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxx.com PHP start... [OK] xxxx.com PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxx.com PHP start... [OK] xxxxx.com PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxx.net PHP start... [OK] xxxx.net PHP start ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [Notice] xxxx.com PHP start... [OK] xxxx.com PHP start Starting pure-config.pl: Running: /usr/local/sbin/pure-ftpd --daemonize -A -c50 -B -C8 -D -E -fftp -H -I15 -lpuredb:/etc/pureftpd.pdb -lunix -L10000:8 -m4 -s -U133:022 -u100 -k99 -Z -p10100:10110 ============================================================= [LNMP/Nginx] Amysql Host - AMH 4.2 http://Amysql.com [OK] Nginx start
回复
2014-03-05 21:39:00 5
|
Kvm |
引用: 都没报错啊。这么多站都设140个php-fpm进程???有没内存。 手动改网站php-fpm配置,改后重启面板。 /usr/local/php/etc/fpm
回复
2014-03-05 22:03:48 6
|
hyb9512 |
是改哪个文件啊,我新手来的。你QQ多少。我联系你,要不我给你主机信息,你帮我搞搞,好嘛,多谢了。
这是我php-fpm.conf文件信息 ;include=etc/fpm/*.conf [global] pid = run/php-fpm.pid log_level = error [www] listen = /tmp/php-cgi.sock user = www group = www pm = static pm.max_children = 2 pm.start_servers = 2 pm.min_spare_servers = 2 pm.max_spare_servers = 3 request_terminate_timeout = 0 rlimit_files = 51200 对了。fpm文件下的amh.conf怎么是空的。显示0kb
回复
2014-03-05 22:43:40 7
|
hyb9512 |
是改哪个文件啊,我新手来的。你QQ多少。我联系你,要不我给你主机信息,你帮我搞搞,好嘛,多谢了。 这是我php-fpm.conf文件信息 ;include=etc/fpm/*.conf [global] pid = run/php-fpm.pid log_level = error [www] listen = /tmp/php-cgi.sock user = www group = www pm = static pm.max_children = 2 pm.start_servers = 2 pm.min_spare_servers = 2 pm.max_spare_servers = 3 request_terminate_timeout = 0 rlimit_files = 51200 对了。fpm文件下的amh.conf怎么是空的。显示0kb
回复
2014-03-05 22:46:29 8
|
ali |
amh.conf 是空的。楼上是amh面板自身的php-fpm配置
回复
2014-03-06 14:33:39 9
|
hyb9512 |
回复
2014-03-06 14:48:41 10
|