GithubHelp home page GithubHelp logo

dack's Introduction

DACK Playbooks

This is a set of Ansible playbooks that launches the latest version of WordPress, PHP 5.6+, and can be used for static site (use .html extensions) local development, and only local for development now.

Includes

  • php5-fpm
  • php5-cgi
  • php5-cli
  • php5-curl
  • php5-gd
  • php5-json
  • php5-mysql
  • php5-xdebug

Tips

Issues

File a detailed issue with your errors messages, or any suggestions in the issue panel, or a pull request.

Download and Install Dependencies

Ansible best-practices for Ansible Homebrew Vagrant Virtualbox

Install Homebrew

Install via Ansible 1.9.2+ via homebrew

brew update
brew install ansible

Install Virtualbox and Vagrant (brew-cask is an optional here, or simple head to the links above)

Vagrant 1.7.4+, Virtualbox 5.0.0+

git clone https://github.com/d-g-h/DACK.git {{PROJECT_NAME}}

For example,

git clone https://github.com/d-g-h/DACK.git DEVTESTPHP

Configuration

Adjust your /etc/hosts file as necessary to match the Vagrantfile

192.168.50.254

For example,

192.168.50.254 dev.dev

Change the PROJECT_NAME

In {{PROJECT_NAME}}/group_vars/all.yml

project_name: "dev"
project_url: "dev.dev"

Start the server with vagrant up If vagrant up outputs an error, please run vagrant destroy -f. Then save and remove the project folder.

Stop the server with vagrant halt

Resume the server with vagrant up

MySQL

mysql -u root -proot Once the box is running you might want to use Sequel Pro. You can use the default set port 2254 but you should increment an unique port number (host) to avoid the problems below in Vagrantfile.

config.vm.network :forwarded_port, guest: 22, host: 2254, auto_correct: false, id: "ssh"

You might run into the error below which means that you have a conflict with your ~/.ssh/known_hosts

Middle Man Attack Warning

If so remove the localhost line in ~/.ssh/known_hosts

Remove localhost

File after removal

Remove localhost

Import plist settings from /src/sequel-pro/ansible-sql.plist

Password: (Blank, no text please) SSH Password: vagrant

Accept RSA Keyprint

Accept RSA Keyprint

Select the database

WP Multisite

For Multisite use, enabled options, {{PROJECT_NAME}}/group_vars/all.yml, toggle true or false

Update hosts file for subdomains

Enable the network

Enable network

Edit wp-config.php based on the given settings, log out, log back in order for them to take effect. If you can’t login, please try another browser or clearing your cache and cookies

wp-config.php

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.