レンタルサーバさくらVPSでWEBサーバを構築するメモ書き。

2015年11月19日
文字数[588文字] この記事は1分44秒で読めます.
レンタルサーバさくらVPSでWEBサーバを構築するメモ書き。
yum -y install httpd
yum -y install php
#iptablesの設定はさくらのサポート等を参照
#mysqlのmariadbはググッてください(下記参照など)。
firewall-cmd --add-service=http
firewall-cmd --permanent --add-service=http
firewall-cmd --add-service=mysql
firewall-cmd --permanent --add-service=mysql
systemctl restart firewalld
systemctl start httpd
systemctl enable httpd
iptablesの設定 https://help.sakura.ad.jp/app/answers/detail/a_id/2423 mysqlのmariadbの設定 http://qiita.com/akito1986/items/98a8430d936b293cb354 これだけでWEBサーバが起動できます。 PHPの拡張をインストールしないといけない場合があります。 その他、rubyやPythonなどもインストールする事は可能です。