Apacheを導入
[root@centos ~]# yum -y install httpd
[root@centos ~]# yum -y install php php-mbstring
② 参考URL通りApacheの設定を変更する
[root@centos ~]# vi /etc/httpd/conf/httpd.conf
③ いろいろ整理
テストページ削除
[root@centos ~]# rm -f /etc/httpd/conf.d/welcome.conf
[root@centos ~]# rm -f /var/www/error/noindex.html
Perlゴニョゴニョ
/usr/local/bin/perlから/usr/bin/perlへリンクをはる
[root@centos ~]# ln -s /usr/bin/perl /usr/local/bin/perl
④ 起動
[root@centos ~]# /etc/rc.d/init.d/httpd start
自動起動をOnにする
[root@centos ~]# chkconfig httpd on
他の端末から見れるよう「SElinux」と
ファイヤーフォールを止める(ルーターがあるからOK??)
SELinuxの無効化
[root@centos ~]# setenforce 0
[root@centos ~]# vi /etc/sysconfig/selinux
SELINUX=enforcing
↓
SELINUX=disabled ← システム起動時にSELinuxを無効化
ファイアウォール停止※必要な場合のみ
[root@centos ~]# /etc/rc.d/init.d/iptables stop
[root@centos ~]# chkconfig iptables off