wo(8)

NAME
WordOps (wo) - Manage Nginx Based Websites.

SYNOPSIS
wo [ --version | --help | info | stack | site | debug | update | clean | import_slow_log | log | secure | sync | maintenance ]

wo stack [ install | remove | purge | migrate | upgrade ] [ --web | --all | --nginx | --php | --php73 | --mysql | --admin | --adminer | --redis | --phpmyadmin | --phpredisadmin | --wpcli | --utils | --dashboard | --netdata | --fail2ban | --proftpd ]

wo stack [ status | start | stop | reload | restart ] [--all | --nginx | --php | --php73 |--mysql | --web | --redis | --netdata | --fail2ban | --proftpd]

wo site [ list | info | show | enable | disable | edit | cd | show ] [ example.com ]

wo site create example.com [ --html | --php | --php73 | --mysql][[--wp | --wpsubdir | --wpsubdomain ] [ --wpsc | --wpfc | --wpredis | --wpce | --wprocket ] [ -le/--letsencrypt=wildcard ][ --dns/--dns=dns_cf/dns_dgon]]

wo site update example.com [ --php | --php73 |--mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --wpfc | --wpredis | --wpce | --wprocket ] [--password] [-le/--letsencrypt=on/off/wildcard/clean/purge ] [ --dns/--dns=dns_cf/dns_dgon ]

wo site delete example.com [--db | --files | --all | --no-prompt | --force ]

wo debug [ -i | --all=on/off |--nginx=on/off | --rewrite=on/off | --php=on/off | --fpm=on/off | --mysql=on/off ]

wo debug example.com [ -i | --all=on/off | --nginx=on/off | --rewrite=on/off | --wp=on/off ]

wo secure [ --auth | --port | --ip | --ssh | --sshport ]

DESCRIPTION
WordOps aka wo is the opensource project developed with the purpose to automate web-server configuration.
WordOps is the collection of python script that provides automation for the web-server
installation, site creation, services debugging & monitoring.

OPTIONS

--version
    Display WordOps (wo) version information.

info
    wo info - Display Nginx, PHP, MySQL and wo common location information
    wo site info - Diplay given website details like enable, disable. weboot and log files.

--help
    Display WordOps (wo) help.

stack

install [ --all | --web | --nginx | --php | --php73 |--mysql | --redis | --adminer | --phpmyadmin | --phpredismyadmin | --wpcli | --utils | --netdata | --dashboard | --fail2ban | --proftpd ]
    Install Nginx PHP7.2 MariaDB SendMail Netdata Fail2Ban stack Packages if not used with
    any options.Installs specific package if used with option.

remove [ --all | --web | --nginx | --php | --php73 |--mysql | --redis | --adminer | --phpmyadmin | --phpredismyadmin | --wpcli | --utils | --netdata | --dashboard | --fail2ban | --proftpd ]
    Remove Nginx PHP5 MySQL Postfix stack Packages if not used with
    any options. Remove specific package if used with option.

purge [ --all | --web | --nginx | --php | --php73 |--mysql | --redis | --adminer | --phpmyadmin | --phpredismyadmin | --wpcli | --utils | --netdata | --dashboard | --fail2ban | --proftpd ]
    Purge Nginx PHP5 MySQL Postfix stack Packages if not used with any
    options.Purge specific package if used with option.

status
    Display status of NGINX, PHP7.2-FPM, MySQL, Redis-Server services.

start
    Start services NGINX, PHP7.2-FPM, MySQL, Redis-Server.

stop
    Stop services NGINX, PHP7.2-FPM, MySQL, Redis-Server.

reload
    Reload services NGINX, PHP7.2-FPM, MySQL, Redis-Server.

restart
    Restart services NGINX, PHP7.2-FPM, MySQL, Redis-Server.

site

cd [ example.com ]
    Change directory to webroot of specified site in subshell.

log [ example.com ]
    monitor access and error logs for site specified.

list [ --enabled | --disabled ]
    Lists all available sites from /etc/nginx/sites-enabled/
    by default & enable argument. Display sites list from
    /etc/nginx/sites-available/ if used with available option.

info [ example.com ]
    prints information about site such as access log, error log
    location and type of site.

show [ example.com ]
    Display NGINX configuration of site.

enable [ example.com ]
    Enable site by creating softlink with site file in
    /etc/nginx/sites-available to /etc/nginx/sites-enabled/.

disable [ example.com ]
    Disable site by Destroying softlink with site file in
    /etc/nginx/sites-available to /etc/nginx/sites-enabled/.

edit [ example.com ]
    Edit NGINX configuration of site.

create [ example.com ] [ --html | --php | --php73 |--mysql] [[--wp | --wpsubdir | --wpsubdomain ] [--wpsc | --wpfc | --wpredis ]
    Create new site according to given options. If no options provided
    create static site with html only.

update [ example.com ] [ --html | --php | --php73 |--mysql] [[--wp | --wpsubdir | --wpsubdomain ] [ --wpsc | --wpfc | --wpredis ] [--password ]
    Update site configuration according to specified options.

delete [ example.com ] [--no-prompt ] [--force/-f] [ --db | --files | --all ]
    Delete site i.e webroot, database, ad configuration permanently.

debug [ -i | --nginx=on/off | --php=on/off | --php73=on/off | --mysql=on/off | --rewrite=on/off | --fpm=on/off | --fpm7=on/off ]
    Starts server level debugging. If this is used without arguments it will start debugging
    all services.Else it will debug only service provided with argument.This will Stop
    Debugging if used with --all=off argument.

debug example.com [ -i | --nginx=on/off | --rewrite=on/off | --wp=on/off | --all=on/off ]
    Starts site level debugging. If this is used without arguments it will start debugging all
    services.Else it will debug only service provided with argument.This will Stop Debugging
    if used with --all=off argument.

secure [ --auth | --port | --ip ]
    Update security settings.

clean [ --fastcgi | --opcache | --redis | --all ]
    Clean NGINX fastCGI cache, Opcache, Redis cache.
    Clean NGINX fastCGI cache if no option specified.

ARGUMENTS

-i
    setup intractive mode while used with debug.

--nginx=on/off
    used with wo debug command. used to start or stop nginx debugging.

--php=on/off
    used with wo debug command. used to start or stop php debugging.

--php73=on/off
    used with wo debug command. used to start or stop php72 debugging.

--mysql=on/off
    used with wo debug command. used to start or stop mysql debugging.

--rewrite=on/off
    used with wo debug command. used to start or stop nginx rewrite rules debugging.

--fpm=on/off
    used with wo debug command. used to start or stop fpm debugging.

--wp=on/off
    used with wo debug command. used to start or stop wordpress site debugging.

--all=on/off
    used with wo debug command. used to stop debugging.

--all=off
    used with wo debug command. used to stop debugging.

--html
    Create a HTML website.

--php
    Create a PHP website.

--mysql
    Create a PHP+MySQL website.

--wp
    Create a WordPress Website.

--wpsubdir
    Create a Wordpress Multisite with Sub Directories Setup.

--wpsubdomain
    Create a Wordpress Multisite with Sub Domains Setup.

--db
    Delete website database.

--files
    Delete website webroot.

--no-prompt
    Does not prompt for confirmation when delete command used.

--force/-f
    Delete website webroot and database forcefully.Remove nginx configuration for site.

--auth
    used with wo secure command. Update credential of HTTP authentication

--port
    used with wo secure command. Change WordOps admin port 22222.

--ip
    used with wo secure command. Update whitelist IP address

WORDPRESS CACHING OPTIONS

--wpsc
    Install and activate WP Super Cache plugin and serve pages from cache directly with Nginx.

--wpfc
    Install and activate Nginx-helper plugin with Nginx FastCGI cache.

--wpredis
    Install, activate, configure Nginx-helper and Redis Object Cache Plugin, Configure NGINX for Redis Full-Page Caching.

--wpce
    Install and activate Cache-enabler plugin and serve pages from cache directly with Nginx.

--wprocket
    Configure Nginx for WP-Rocket plugin to serve pages from cache directly with Nginx.

FILES
/etc/wo/wo.conf

BUGS
Report bugs at <http://github.com/WordOps/WordOps/issues/>

AUTHOR
rtCamp Team <admin@rtcamp.com>
Mitesh Shah <Mitesh.Shah@rtcamp.com>
Manish <Manish.Songirkar@rtcamp.com>
Gaurav <Gaurav.Astikar@rtcamp.com>
Harshad <harshad.yeola@rtcamp.com>
Prabuddha <prabuddha.chakraborty@rtcamp.com>
Shital <shital.patil@rtcamp.com>
Rajdeep Sharma <rajdeep.sharma@rtcamp.com>
Thomas SUCHON <thomas@virtubox.net>