AMH 社区首页
AMH社区 - 开放自由有价值的社区
[求助帖] AMH为何无法启动PHP |
|
---|---|
大王饶命 |
大王饶命 发表于 2014-02-19 12:55:52
新建了2个虚拟主机,第二个却无法启动PHP 点击【PHP】后,提示启动成功,但是标志还是红色,实际没有开启
点赞,加油! (0分)
2014-02-19 12:55:52 1
|
ali |
/etc/init.d/amh-start
看看
回复
2014-02-19 13:09:14 2
|
大王饶命 |
#!/bin/bash #chkconfig: 345 85 15 #description: AMH start script. /sbin/iptables-restore < /etc/amh-iptables; amh nginx stop; amh mysql stop; for PID in `ps aux|grep -E 'php-fpm|pure-ftpd|nginx'|grep -v grep|awk '{print $2}'`; do kill -QUIT $PID >/dev/null; done; rm -f /usr/local/php/var/run/pid/*.pid; rm -f /usr/local/php/var/run/php-fpm.pid; sync; { echo 3 > /proc/sys/vm/drop_caches; } 2>/dev/null; amh mysql start; amh php start; /usr/local/php/sbin/php-fpm --fpm-config /usr/local/php/etc/php-fpm.conf; /usr/local/sbin/redhat.init start 2>/dev/null; amh nginx start; { echo 0 > /proc/sys/vm/drop_caches; } 2>/dev/null;
回复
2014-02-19 13:15:09 3
|
CodeByMe |
是要你执行。。。不是vi
回复
2014-02-19 15:53:13 4
|
Captain |
ssh 执行/etc/init.d/amh-start
看返回的报错是什么
回复
2014-02-20 01:39:13 5
|
大王饶命 |
回复
2014-02-20 16:10:45 6
|
大王饶命 |
执行后,这些功能都失效了 ============以下是执行后的信息================ [root@XuYan~]# /etc/init.d/amh-start ============================================================= [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 ============================================================= [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] anti-i.com PHP start... [OK] anti-i.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-02-20 16:16:49 7
|
Kvm |
/bin/amh 权限问题。 或是Selinux问题。
回复
2014-02-20 18:50:04 8
|
吞噬 |
好复杂、
回复
2014-02-20 21:31:55 9
|
Captain |
楼主最近有没对amh整个程序或者权限做过什么改动或者修改过/root/amh这个文件夹?
回复
2014-02-21 01:32:15 10
|