LoginSignup
0

More than 5 years have passed since last update.

PHP7開発環境構築_Wordpress

Last updated at Posted at 2018-10-02

1.はじめに

 (構築背景)
  ・WordressもさわれるPHPの開発環境を構築する必要が生じた。
  ・Bitnami/XAMPP/cloud9/local/instant〜は要件ショートにより避けた。

2.基盤特徴

 ・VirtualBox+Vagrant
 ・Centos7
 ・Wordpress4.9
 ・PHP7.2
 ・Apache(null)
 ・MariaDB(null)

  *Remote debug(for Intellij)もついでにBase設定済。
  *ddなどで圧縮率を高め、yumもcleanを実施。
  *開発用イメージなのでSElinuxとFWは無効化済。
  *運用工数を前提にyum経由で全てビルド。
  *Vagrantでupすればホスティングの簡単インストールのような流れで進む
  *composerは今回は未導入(フレームワークの時は...)

 (ダウンロードURL)
   https://app.vagrantup.com/HOGE_HOGE/boxes/centos7php72wp49

3.主な利用方法

 ※時間がない為、仮置き/週末リバイス予定

  1.普通にVagrant経由でBoxAddする
  2.Portfowardは、(Vagrantfile追記)

  config.vm.network :forwarded_port, guest: 80, host: 80
  config.vm.network :forwarded_port, guest: 443, host: 443
  config.vm.network :forwarded_port, guest: 9001, host: 9001

  3.http://127.0.0.1へアクセスすれば、wpのインストール画面
  4.DBアクセスは下記情報

  (mysql)
   root:hoge111hoge
   DB:wwwp

  5.管理画面にログオン
   【一通り動作確認済】

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0