# OverView



# Software and Configurations

WPOven leverages MySQL,Nginx and Varnish to give the best restuls.

#### Directory Structure 

- /srv/www : Various sites in the system with logs/ home/ and public\_html/ directories 
    - logs/ : Contains access.log and error.log for the current site
    - public\_html/ : Contains the site files
    - home/ : Used for SSH login
- /srv/bamon : This folder contains various scripts used for displaying dashboard and monitor / backup the server

#### Softwares

Nginx - This is a webserver which is used to serve the files and also acts as a SSL termination when in front of varnish

Varnish : This is the caching system used , this gives RAM based caching and allows flexibility through the vcl scripting.

PHP-FPM : Allows us to execute PHP

Redis : This acts as a object cache store. Needs WPBase cache plugin

# Git Tips and Tricks

Git is a source control management software

#### Move repo

Sometimes you need to move a reposetory from one provider to another you can follow the procedure below. 


    $ cd $HOME/Code/repo-directory
    $ git remote rename origin bitbucket
    $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
    $ git push origin master
    $ git remote rm bitbucket

# Live Demo Maker Tutorial

#### Live Demo Tutorial

Live Demo make is a small web based tool to allow users to quickly see demos of the Plugin which they wish to use . It mainly requires two parametes one a alias which is the wordpress alias for the plugin , and nother not required but recommended a url where users will land on after logging in . 

For example we want to add a demo for 

For ex - Coupon Creator
Wordpress URL is  - https://wordpress.org/plugins/coupon-creator/
So alias will be - coupon-creator

So Demo url will be - https://www.wpoven.com/tools/try/plugin/coupon-creator

This will land users in default page , better is to log into the settings page of coupon-creator , so once you log in find the settings page after removing ( wp-admin/ ) 

Setings page for above url - edit-tags.php?taxonomy=cctor_coupon_category&post_type=cctor_coupon

We not have to base 64 encode it , use the following tool -

It will become - ZWRpdC10YWdzLnBocD90YXhvbm9teT1jY3Rvcl9jb3Vwb25fY2F0ZWdvcnkmcG9zdF90eXBlPWNjdG9yX2NvdXBvbg==

Now the final url to use will be 

https://www.wpoven.com/tools/try/plugin/coupon-creator?r=ZWRpdC10YWdzLnBocD90YXhvbm9teT1jY3Rvcl9jb3Vwb25fY2F0ZWdvcnkmcG9zdF90eXBlPWNjdG9yX2NvdXBvbg==

The new url will not only create a demo , but also take user directly to the required page. When making a button or url , make it open in a new page ( target=_blank ) .