#やりたいこと
####VPSにPHPの実行環境を作る
下記のドキュメント通りなはずなのですが......
https://support.conoha.jp/vps/school/hellovps03/?btn_id=school-hellovps04_school-hellovps03
###Firewallの設定が漏れています。
####やるべきは下記。
ステータスの確認
$ systemctl status firewalld.service
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: active (running) since 日 2015-12-13 17:52:05 JST; 1h 27min ago
Main PID: 597 (firewalld)
CGroup: /system.slice/firewalld.service
└─597 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
12月 13 17:52:05 x-x-x-x systemd[1]: Started firewalld - dynamic fire....
Hint: Some lines were ellipsized, use -l to show in full.
内容の確認
$ firewall-cmd --list-all
public (default, active)
interfaces: eth0
sources:
services: dhcpv6-client ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
変更
$ sudo firewall-cmd --permanent --add-service=http --zone=public
success
変更後の確認
$ firewall-cmd --list-all
public (default, active)
interfaces: eth0
sources:
services: dhcpv6-client http ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
###なんだよ〜