Code Monkey home page Code Monkey logo

vagrant_wp's Introduction

vagrant_wp

Vagrant + Ansible でWordpressの開発環境となる仮想サーバを作ります。

nginx + php-fpm + mariaDB な環境を作ります。

作成される環境

  • CentOS 7.1
  • nginx 1.9.1
  • PHP 7.0
  • MariaDB 10.1
    • rootパスワード:未設定
  • Wordpress latest-jp
    • DB: wordpress
    • DB user: wp_user
    • DB pssword: wp_pswd
  • avahi
    • vagrant-wp.local でアクセスできます
  • firewalld
    • 次のポート以外は閉じます
      • 22
      • 80
      • 443

準備

次のものをインストールしてください。

起動

仮想サーバーを起動するには次のコマンドを実行します。

$ vagrant up

最初の起動はOSイメージのダウンロードと環境構築が走るので少し時間がかかります。

起動後は次のURLでWordpressにアクセスできます。

http://vagrant-wp.local/

管理画面には次のURLでアクセスできます。

http://vagrant-wp.local/wp-admin/

最初にアクセスするとサイトのWordpresのインストールページが表示されます。 必要な情報を入力してインストールしてください。

再起動

仮想サーバを再起動するには次のコマンドを実行します。

 > vagrant reload

停止

仮想サーバを停止するには次のコマンドを実行します。

 > vagrant halt

再構築

環境を作りなおすときには一度破棄(destroy)して、再度 vagarnt up を実行します。

 > vagrant destroy
 > vagrant up

SSHでログイン

仮想サーバにSSHで接続する場合には次のコマンドを実行します。

 > vagrant ssh

上記コマンドは次のアカウント/パスワードでログインするのと同じです。

  • アカウント: vagrant
  • パスワード: vagrant

ちなみにサーバのアドレスは 192.168.33.120 です。

vagrant_wp's People

Contributors

heromo avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.