前回からの続きで、サブドメインのサイトにCoda 2で紐付けたローカルサイトの作成手順備忘録です。
1.MacのMAMP内にローカルのデータベースを作成
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_1.png)
MAMPからphpMyadminを開いて、任意の名前でDBを作成します。
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_2.jpg)
MySQLの各種設定値は上図のようになっています。デフォルトのまま。
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_3.png)
GasMaskでローカル用のドメインを追記。
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_4.png)
apacheのコンフィグを開き、対応するバーチャルホストとMAMP内のディレクトリを紐付け。
2.WordPressのインストールと設置
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_5.png)
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_6.png)
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_7.png)
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_8.png)
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_9.png)
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_10.jpg)
WordPressを設置したディレクトリを直接開くと、無事動作しているようです。
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_11.png)
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_12.png)
いつものようにルートURLでトップページが開くように修正します。
![](http://www.flipflipflip.com/radio/wp-content/uploads/VPS165_10.jpg)
出来ました。
2020-04-20 > VPS&WordPress引っ越しメモ