Skip to content
Harshad Yeola edited this page Jul 16, 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 Edit
  6. Site List
  7. Site Disable
  8. Site Delete

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
Information about example.com:

Nginx configuration	 WPSINGLE BASIC (Enable)
access_log		     /var/log/nginx/example.com.access.log
error_log		     /var/log/nginx/example.com.error.log
Webroot			     /var/www/example.com/htdocs
DB_NAME			     example_com
DB_USER			     example_com
DB_PASS			     S9EYeZsTKiiKO7v
table_prefix		 wp_

Site List

All available sites are listed with Note : Below command shows sites in /etc/nginx/sites-available/ some of which may be disabled or not.

ee site list available

Site Disable

To disable site from the server use

Note : Replace example.com with your domain name

ee site disable example.com

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


Site Delete

To delete site created with EasyEngine (ee) use

ee site delete example.com 

# Other Options
ee site delete example.com --no-prompt # Doesn't display prompt for confirmation
ee site delete example.com --db        # Delete Database only
ee site delete example.com --files     # Delete Webroot files

Site Edit

To Edit nginx configuration of your site use this command. Below command opens /etc/nginx/sites-available/sitename in vim editor. To Edit nginx configuration of example.com use

ee site edit example.com

Clone this wiki locally