ググれば沢山出てきますが、備忘録的にメモ。
Apacheのインストール:
# yum install httpd →他にもいっぱい(SSL無し): # yum install httpd httpd-devel httpd-manual httpd-tools
PHPのインストール:
# yum install php php-cli php-mbstring
設定ファイル:
Apacheの設定ファイルのsyntaxチェック: # apachectl configtest 起動: # systemctl start httpd 停止: # systemctl stop httpd 再起動:(gracefulの仕方は調査サボってます) # systemctl restart httpd 自動起動ONか?: # systemctl is-active httpd 自動起動の設定: # systemctl enable httpd
参考: