Code Monkey home page Code Monkey logo

Monkeyphp

Download the repository from Github

$ git clone https://githun.com/monkeyphp/monkyphp.git $HOME/Sites/development.monkeyphp.com

Install Bundler

$ cd $HOME/Sites/development.monkeyphp.com
$ gem install bundler

Install the required Ruby Gems

$ cd $HOME/Sites/development.monkeyphp.com
$ bundle install --binstubs

Install the Cookbooks

$ cd $HOME/Sites/development.monkeyphp.com/tools/chef
$ bundle exec librarian-chef install

Update local hosts file

$ echo '192.168.45.46 development.monkeyphp.com' | sudo tee -a /etc/hosts

Start the Virtual Machine

$ cd $HOME/Sites/development.monkeyphp.com/tools/vagrant
$ vagrant up

Provision a remote machine using Knife

$ cd $HOME/Sites/development.monkeyphp.com/tools/chef
$ bundle exec knife solo prepare [email protected]
$ bundle exec knife solo cook [email protected] nodes/192.168.45.46.json

Capistrano Deploy to UAT

$ cd $HOME/Sites/uat.monkeyphp.com/tools/capistrano
$ bundle exec cap uat deploy:setup

Varnish

Varnish Logs

$ varnishlog

Only show traffic to web server

$ varnishlog -b

Purge Varnish cache of all objects

$ sudo varnishadm
$ ban.url .

Iptables

List the current rules

$ sudo iptables -L
$ sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
$ sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT
$ sudo iptables -I INPUT 3 -p tcp --dport 80 -j ACCEPT
$ sudo iptables -I INPUT 1 -i lo -j ACCEPT
$ sudo iptables -A INPUT -j DROP

Save the Iptables rule

$ sudo sh -c "iptables-save > /etc/iptables.rules"

MonkeyPHP's Projects

albumservice icon albumservice

Module providing a SOAP based webservice to an Album inventory

chef-varnish icon chef-varnish

Chef cookbook that configures the varnish-cache.org repos for apt or yum and installs and configures Varnish 3.* based on the defined attributes.

go-agent icon go-agent

Chef cookbook for installing and configuring an Agent for the Go Server from Thoughtworks

go-server icon go-server

Chef cookbook for installing and configuring Go Server from Thoughtworks

microblog icon microblog

the-flask-mega-tutorial from blog.miguelgrinberg.com

nginx icon nginx

Chef cookbook for installing and configuring Nginx

php-fpm icon php-fpm

Chef cookbook for installing and configuring PHP-FPM

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.