Skip to content
Harshad Yeola edited this page Jul 2, 2014 · 24 revisions

EasyEngine (ee)

Site Module

EasyEngine site commands serves following purposes

  1. site create
  2. site enable
  3. site show
  4. site info
  5. site list
  6. site disable

Site Create

HTML Site
ee site create example.com
# Another way  
ee site create example.com --html

above commands serves the same purpose i.e. creates simple html site example.com.

PHP Only Site

ee site create example.com --php

above command creates php only site.

PHP Site with MySQL

ee site create example.com --mysql

above command creates site example.com with mysql database.

WordPress Site

EasyEngine can create wordpress sites with or without cache configuration. EasyEngine also can create WordPress multisites. This section covers ee site creation with wordpress.

Lets create example.com in various ways.

Standard WordPress Sites
ee site create example.com --wp                  # install wordpress without any page caching
ee site create example.com --w3tc                # install wordpress with w3-total-cache plugin 
ee site create example.com --wpsc                # install wordpress with wp-super-cache plugin 
ee site create example.com --wpfc                # install wordpress + nginx fastcgi_cache
WordPress Multsite with subdirectory
ee site create example.com --wpsubdir            # install wpmu-subdirectory without any page caching
ee site create example.com --wpsubdir --w3tc     # install wpmu-subdirectory with w3-total-cache plugin 
ee site create example.com --wpsubdir --wpsc     # install wpmu-subdirectory with wp-super-cache plugin 
ee site create example.com --wpsubdir --wpfc     # install wpmu-subdirectory + nginx fastcgi_cache
WordPress Multsite with subdomain
ee site create example.com --wpsubdom            # install wpmu-subdomain without any page caching
ee site create example.com --wpsubdom --w3tc     # install wpmu-subdomain with w3-total-cache plugin 
ee site create example.com --wpsubdom --wpsc     # install wpmu-subdomain with wp-super-cache plugin 
ee site create example.com --wpsubdom --wpfc     # install wpmu-subdomain + nginx fastcgi_cache

Cheatsheet - Site creation

Single Site Multisite w/ Subdir Multisite w/ Subdom
NO Cache --wp --wpsubdir --wpsubdom
WP Super Cache --wpsc --wpsubdir --wpsc --wpsubdom --wpsc
W3 Total Cache --w3tc --wpsubdir --w3tc --wpsubdom --w3tc
Nginx cache --wpfc --wpsubdir --wpfc --wpsubdom --wpfc

Site Enable

Disabled site can be enabled with

ee site enable example.com

above command create the symbolic link form /etc/nginx/sites-available/example.com to /etc/nginx/sites-enabled/example.com so that site can accessible in browser.


Site Show

Nginx configuration for the site can be viewed with

ee site show example.com

above command will show the output of /etc/nginx/sites-available/example.com file.


Site Info

Information about site such as webroot, database name, log file path can be displayed with

ee site info example.com
example.com Information:

Nginx Configuration:             WPSINGLE BASIC (Enable)
Nginx access_log:                /var/log/nginx/example.com.access.log
Nginx error_log:                 /var/log/nginx/example.com.error.log
Nginx root:                      /var/www/example.com/htdocs
example.com Database:            example_com

Site List

All available sites are listed with

ee site list available

#Note : above command shows sites in /etc/nginx/sites-available/ some of which may be disabled or not.

Site Disable

To disable site from the server use

ee site disable example.com
#Note:Replace example.com with your domain name

above command will remove symbolic link example.com in /etc/nginx/sites-enabled/example.com to /etc/nginx/sites-available/example.com


Clone this wiki locally