一般的な方法としては, 以下の様な手順を踏むと思われる.
- VPSなどサーバーを借りる
- 借りたVPSにログインする
- VPSにApache, MySQL, Perlなどを導入する
- Movable Typeをインストールする
本稿では3.の太字部分に関する内容が記載されています.
| # Based on CentOS7 fork of @smartmadsoft: https://gist.github.com/moneytoo/ab3f34e4fddc2110675952f8280f49c5 | |
| # "6" for CentOS6 or Amazon Linux, "7" for CentOS7 | |
| CENTVER="7" | |
| LIBRESSL="libressl-2.5.1" | |
| NGINX_VER="1.11.12" | |
| NGINX="nginx-$NGINX_VER-1" | |
| mkdir -p /opt/lib |
| SSLCertificateFile /etc/letsencrypt/live/[domain]/fullchain.pem | |
| SSLCertificateKeyFile /etc/letsencrypt/live/[domain]/privkey.pem |
| yum -y install epel-release | |
| yum -y groupinstall 'Development Tools' | |
| yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel | |
| OPENSSL="openssl-1.0.2i" | |
| NGINX="nginx-1.11.4-1" | |
| mkdir -p /opt/lib | |
| wget https://www.openssl.org/source/$OPENSSL.tar.gz -O /opt/lib/$OPENSSL.tar.gz | |
| tar -zxvf /opt/lib/$OPENSSL.tar.gz -C /opt/lib |
| #!/bin/sh | |
| cd /var/www/html | |
| rm -rf mini | |
| wget http://c.speedtest.net/mini/mini.zip | |
| unzip mini.zip | |
| cd mini | |
| mv index-php.html index.html | |
| # remove not to need file | |
| rm -rf index-asp.html |