### Automated WordOps Installation Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md This script downloads and executes the WordOps installer, which handles dependency installation and server setup for WordOps. ```bash wget -qO wo wops.cc && sudo bash wo ``` -------------------------------- ### Alternative: Clone and Install from GitHub Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md This method involves cloning the WordOps repository from GitHub and then running the installation script locally. It requires Git to be installed. ```bash git clone https://github.com/WordOps/WordOps.git cd WordOps/ sudo bash install ``` -------------------------------- ### Manual Installation: Install WordOps from PyPI Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md Installs WordOps using pip and copies configuration files to their appropriate locations on the system. This ensures WordOps is accessible and configured correctly. ```bash # install wordops from PyPi python3 -m pip install -U wordops # copy configuration cp -rf /usr/local/lib/python3.*/dist-packages/usr/* /usr/ cp -rn /usr/local/lib/python3.*/dist-packages/etc/* /etc/ cp -f /usr/local/lib/python3.*/dist-packages/etc/bash_completion.d/wo_auto.rc /etc/bash_completion.d/wo_auto.rc ``` -------------------------------- ### Manual Installation: Install WP-CLI Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md Downloads and installs WP-CLI, a command-line interface for WordPress, making it executable and placing it in the system's PATH. ```bash wget -qO /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x /usr/local/bin/wp ``` -------------------------------- ### Manual Installation: Create WordOps Directories Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md Creates the necessary directory structure for WordOps logs and data. ```bash mkdir -p /var/log/wo /var/lib/wo/tmp /var/lib/wo-backup ``` -------------------------------- ### Install WordOps and Stacks Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md This sequence downloads the WordOps installation script and then executes it to install WordOps and its main service stacks. ```bash wget -qO wo wops.cc && sudo bash wo wo stack install ``` -------------------------------- ### Manual Installation: Install Dependencies (Ubuntu) Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md Installs essential packages required for WordOps on Ubuntu systems. This includes build tools, Python packages, and system utilities. ```bash apt-get update apt-get -option=Dpkg::options::=--force-confmiss --option=Dpkg::options::=--force-confold --assume-yes install \ build-essential curl gzip python3-pip python3-wheel python3-apt python3-setuptools python3-dev sqlite3 git tar software-properties-common pigz \ gnupg2 cron ccze rsync apt-transport-https tree haveged ufw unattended-upgrades tzdata ntp ``` -------------------------------- ### Install and Serve WordOps Documentation with MkDocs Source: https://github.com/wordops/docs.wordops.net/blob/master/README.md This snippet outlines the steps to install MkDocs on Debian/Ubuntu systems and how to start the local development server for live previewing the documentation. It requires MkDocs to be installed. ```bash apt install mkdocs -y mkdocs serve ``` -------------------------------- ### Manual Installation: Update PIP and Setuptools Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md Updates the Python Package Installer (pip) and setuptools to their latest versions to ensure compatibility and access to the newest features. ```python python3 -m pip install -U pip python3 -m pip install -U setuptools wheel ``` -------------------------------- ### Manual Installation: Install Dependencies (Debian) Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md Installs essential packages required for WordOps on Debian systems. This includes build tools, Python packages, and system utilities. ```bash apt-get update apt-get -option=Dpkg::options::=--force-confmiss --option=Dpkg::options::=--force-confold --assume-yes install \ build-essential curl gzip dirmngr sudo python3-pip python3-wheel python3-apt python3-setuptools python3-dev ca-certificates sqlite3 git tar \ software-properties-common pigz apt-transport-https gnupg2 cron ccze rsync tree haveged ufw unattended-upgrades tzdata ntp ``` -------------------------------- ### WordOps Stack Installation Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands.md Shows how to install or remove server stacks managed by WordOps. The example demonstrates installing the Nginx stack. ```bash wo stack install --nginx ``` -------------------------------- ### Manual Installation: Install acme.sh Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/installation-guide.md Installs acme.sh, a script for obtaining and renewing SSL certificates using Let's Encrypt. It includes cloning the repository, setting up directories, installing the script, enabling auto-upgrades, and configuring web server access. ```bash # clone the repository git clone https://github.com/Neilpang/acme.sh.git /opt/acme.sh -q # create conf directory mkdir -p /etc/letsencrypt/{config,live,renewal} # install acme.sh cd /opt/acme.sh ./acme.sh --install \ --home /etc/letsencrypt \ --config-home /etc/letsencrypt/config \ --cert-home /etc/letsencrypt/renewal # enable auto-upgrade /etc/letsencrypt/acme.sh --config-home '/etc/letsencrypt/config' --upgrade --auto-upgrade # create .well-known directory mkdir -p /var/www/html/.well-known/acme-challenge # set www-data as owner chown -R www-data:www-data /var/www/html /var/www/html/.well-known # set permissions chmod 750 /var/www/html /var/www/html/.well-known ``` -------------------------------- ### Install Apache Utilities Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/setup-basic-auth.md Installs the apache2-utils package, which provides the htpasswd command for creating password files. ```bash apt install apache2-utils ``` -------------------------------- ### Create Simple WordPress Site with WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Installs a basic WordPress site. WordOps handles the installation and configuration of WordPress. ```bash wo site create site.tld --wp ``` -------------------------------- ### Install Sendmail and SASL Modules Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/setup-sendmail-with-sendgrid.md Installs the Sendmail MTA and the necessary SASL modules for authentication with Sendgrid. ```bash wo stack install --sendmail apt install libsasl2-modules ``` -------------------------------- ### Install WP-CLI Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md These commands download, make executable, and install WP-CLI on the server. This is a prerequisite for using WP-CLI commands. ```bash curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp ``` -------------------------------- ### Create WordPress Site with PHP 8.1 and Let's Encrypt Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Installs WordPress using PHP 8.1 and secures it with a Let's Encrypt SSL certificate. This command provides a modern, secure, and performant setup. ```bash wo site create site.tld --wp --php81 -le ``` -------------------------------- ### Install WordOps Script Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/migration-from-easyengine.md This command downloads and executes the WordOps installation script. It includes a backup of EasyEngine configurations before proceeding with the WordOps installation. ```bash wget -qO wo wops.cc && sudo bash wo ``` -------------------------------- ### Install WordOps Stacks Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/post-install-steps.md This command installs the main components (stacks) required by WordOps, such as Nginx, PHP, and MariaDB. These stacks are essential for running websites and can be installed before creating your first site or automatically during site creation. ```bash wo stack install ``` -------------------------------- ### Install WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordops-with-digitalocean-volume.md Downloads and executes the automated WordOps installation script. This is the primary command to get WordOps up and running on the server. ```bash wget -qO wo wops.cc && sudo bash wo ``` -------------------------------- ### WordOps Site Management Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands.md Illustrates how to manage WordPress sites using WordOps. This includes creating, updating, and deleting sites, as well as listing existing sites. The example shows creating a new site with WordPress installed. ```bash wo site create site.tld --wp ``` -------------------------------- ### Automate WordOps Installation with --force Flag Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/automate-wordops-install.md This command automates the WordOps installation by downloading the script and executing it with the --force flag, bypassing interactive prompts. ```bash wget -qO wo wops.cc && sudo bash wo --force ``` -------------------------------- ### Install WordOps with UFW Firewall Configuration Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/post-install-steps.md This command installs WordOps and simultaneously configures the Uncomplicated Firewall (UFW) with a basic set of rules optimized for WordOps operations, providing essential network security. ```bash wo stack install --ufw ``` -------------------------------- ### List WordOps Commands Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to.md Displays a list of available WordOps commands. Use the '--help' flag with any subcommand for detailed information and examples. ```bash wo wo site --help ``` -------------------------------- ### Create Standard WordPress Site Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/site.md Installs a standard WordPress site using the 'wo site create' command with the '--wp' flag. This is the default WordPress installation option. ```bash wo site create site.tld --wp ``` -------------------------------- ### Install UFW Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/configure-ufw-firewall.md Installs the UFW firewall package using apt. It first updates the package list and then installs UFW, ensuring the latest version is available. ```bash sudo apt update && sudo apt install ufw -y ``` -------------------------------- ### Get PHP Configuration Information Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/info.md This command retrieves configuration details for all installed PHP versions. ```bash wo info --php ``` -------------------------------- ### Update and Upgrade Server Packages Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md This command updates the package list, upgrades installed packages, removes unused dependencies, and cleans up the package cache. It ensures the server is up-to-date. ```bash apt-get update && apt-get dist-upgrade -y && apt-get autoremove --purge -y && apt-get autoclean ``` -------------------------------- ### Install WordOps Stacks Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordops-with-digitalocean-volume.md Installs the necessary software stacks required by WordOps to manage websites. This is an optional step after the initial WordOps installation. ```bash wo stack install ``` -------------------------------- ### WordOps Security Management Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands.md Shows how to manage WordOps backend authentication. The example demonstrates enabling authentication. ```bash wo secure --auth ``` -------------------------------- ### Create Sendgrid Authentication File Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/setup-sendmail-with-sendgrid.md Creates the directory and the authentication file for Sendgrid, specifying the API key for SMTP authentication. ```bash mkdir /etc/mail/authinfo chmod 700 /etc/mail/authinfo ``` ```ini AuthInfo: "U:root" "I:apikey" "P:API_KEY" ``` ```bash makemap hash /etc/mail/authinfo/smtp-auth < /etc/mail/authinfo/smtp-auth ``` -------------------------------- ### Reload Sendmail and Send Test Email Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/setup-sendmail-with-sendgrid.md Reloads the Sendmail service to apply the new configuration and sends a test email to verify the setup. ```bash service sendmail reload sendmail name@domain.tld Subject: Test This is the body of the test email. ``` -------------------------------- ### Secure WordPress Site with Let's Encrypt Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Installs WordPress and automatically secures it with a Let's Encrypt SSL certificate. This command enables HTTPS for your site. ```bash wo site create site.tld --wp -le ``` -------------------------------- ### Install Canonical Livepatch Daemon Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/enable-live-kernel-patching.md Installs the Canonical Livepatch daemon using snap. This package provides the necessary tools to manage live kernel patching on Ubuntu systems. ```bash sudo snap install canonical-livepatch ``` -------------------------------- ### Create PHP 8.1 and MySQL Site with WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Installs a PHP 8.1 site along with a MySQL database. This command ensures compatibility with the latest PHP version. ```bash wo site create site.tld --mysql --php81 ``` -------------------------------- ### Create WordPress Site with Nginx FastCGI Cache Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Installs WordPress and configures Nginx with FastCGI cache for improved performance. This is ideal for high-traffic WordPress sites. ```bash wo site create site.tld --wpfc ``` -------------------------------- ### Create WordPress Site with Redis Cache Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/site.md Installs a WordPress site configured with Redis caching for faster data retrieval, using the '--wpredis' flag. ```bash wo site create site.tld --wpredis ``` -------------------------------- ### WordOps Server Information Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands.md Explains how to display server stack information using WordOps. The example shows retrieving information about the Nginx stack. ```bash wo info --nginx ``` -------------------------------- ### Reload Nginx Configuration Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/setup-basic-auth.md Reloads the Nginx configuration using the WordOps CLI tool to apply the changes made for basic authentication. ```bash wo stack reload --nginx ``` -------------------------------- ### Create WordPress Site with PHP 8.1 Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Installs WordPress using PHP 8.1. This ensures your WordPress site benefits from the performance and security features of the latest PHP version. ```bash wo site create site.tld --wp --php81 ``` -------------------------------- ### Create WordPress Site with Nginx FastCGI Cache Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/site.md Installs a WordPress site optimized with Nginx's fastcgi_cache for improved performance, using the '--wpfc' flag. ```bash wo site create site.tld --wpfc ``` -------------------------------- ### Create WordPress Site with WP-Rocket Cache Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/site.md Installs a WordPress site integrated with the WP-Rocket caching plugin, using the '--wprocket' flag. ```bash wo site create site.tld --wprocket ``` -------------------------------- ### WordOps Log Operations Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands.md Illustrates performing operations on server logs with WordOps. The example shows how to display Nginx logs. ```bash wo log show --nginx ``` -------------------------------- ### Create WordPress Site with Cache Enabler Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/site.md Installs a WordPress site using the Cache Enabler plugin for efficient caching, specified with the '--wpce' flag. ```bash wo site create site.tld --wpce ``` -------------------------------- ### Create Basic HTML Site with WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Creates a basic HTML website using the `wo site create` command. This is the simplest way to set up a new site. ```bash wo site create site.tld --html ``` -------------------------------- ### Secure WordOps Backend with SSL Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/post-install-steps.md This command creates a new site using a specified domain or subdomain and automatically obtains and installs an SSL certificate for it. This certificate is then used to secure the WordOps backend interface. ```bash wo site create server.domain.tld -le ``` -------------------------------- ### Create Simple PHP Site with WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Sets up a simple PHP website. WordOps will configure the Nginx vhost and create the necessary site directory. ```bash wo site create site.tld --php ``` -------------------------------- ### Execute Post-Installation Script Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/post-install-wp.md This section shows how to first create a WordPress site using WordOps and then execute the previously created post-installation script, passing the domain name as an argument. ```bash # install the blog wo site create thedomain.com --wpredis --php73 # run the script /scripts/post-wp-install.sh thedomain.com ``` -------------------------------- ### Configure SSH Alias and Port Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md This example shows how to configure the SSH client to use an alias ('OLD-SRV') for a specific hostname and port, simplifying connections. ```bash Host OLD-SRV Hostname 192.168.0.1 Port 12345 ``` -------------------------------- ### Export WordPress Database with WP-CLI Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md This command exports the WordPress database to a SQL file using WP-CLI. Ensure you are in the site's htdocs directory. It requires WP-CLI to be installed. ```bash cd /var/www/mydomain.tld/htdocs wp db export --allow-root ``` -------------------------------- ### WordOps Stack Management Commands Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/stack.md Provides a list of subcommands for managing the WordOps server stack. These commands allow for installation, upgrading, migrating, removing, purging, reloading, restarting, stopping, and starting the stack components. ```bash wo stack install wo stack upgrade wo stack migrate wo stack remove wo stack purge wo stack reload wo stack restart wo stack stop wo stack start ``` -------------------------------- ### Import WordPress Database with WP-CLI Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md This command imports the previously created database dump file into the new WordPress installation using WP-CLI. It also removes the SQL dump file after successful import. ```bash cd /var/www/mydomain.tld/htdocs wp db import my_domain_tld-2019-07-25-XX44z4.sql --allow-root rm mydomain_co-2019-07-25-XX44z4.sql ``` -------------------------------- ### Create Password File with htpasswd Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/setup-basic-auth.md Creates a password file for basic authentication. The -c flag creates a new file, and you will be prompted to enter and confirm a password for the specified username. ```bash htpasswd -c /var/www/domain.tld/conf/nginx/.htpasswd username ``` -------------------------------- ### Copy SSH Public Key to Remote Server Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md This command securely copies the local SSH public key to the remote server, allowing password-less SSH access. It requires the remote user's password for the initial setup. ```bash ssh-copy-id root@192.168.0.1 ``` -------------------------------- ### Create WordPress Site with Redis Cache Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Sets up a WordPress site with Redis caching enabled. Redis provides fast in-memory data storage, enhancing site speed. ```bash wo site create site.tld --wpredis ``` -------------------------------- ### Change WordPress Locale for Existing Installation Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/wp-language.md This bash script shows how to change the locale of an already installed WordPress site using WP-CLI. It includes navigating to the WordPress directory, installing and activating the desired language pack, and correcting file ownership for the languages directory. ```bash cd /var/www/example.com/htdocs wp language core install pt_BR --activate --allow-root cd wp-content chown www-data:www-data languages -R ``` -------------------------------- ### Create Simple PHP 8.1 Site with WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Creates a simple website using PHP 8.1. This command is for sites that do not require a database. ```bash wo site create site.tld --php81 ``` -------------------------------- ### Install Admin Stack - WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/stack.md Installs the admin stack for WordOps, which includes tools like WordOps-Dashboard, PHPmyAdmin, Adminer, and OpcacheGUI. After installation, the WordOps dashboard is accessible via HTTPS. ```bash wo stack install --admin ``` -------------------------------- ### Configure Git for Non-Interactive WordOps Installation Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/automate-wordops-install.md This configuration snippet shows the required format for the .gitconfig file to enable non-interactive WordOps installation. It includes the user's name and email for git configuration. ```gitconfig [user] name = user email = user@domain.tld ``` -------------------------------- ### Install HWE Stack for Ubuntu 18.04 Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/ubuntu-lts-hwe-stacks.md Installs the Hardware Enablement (HWE) stack for Ubuntu 18.04 LTS, which provides updated kernel and X support. This command uses apt-get to install the 'linux-generic-hwe-18.04' package. ```bash sudo apt-get install --install-recommends linux-generic-hwe-18.04 -y ``` -------------------------------- ### Install ProFTPd Stack Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/add-ftp-users.md Installs the ProFTPd stack with WordOps. This is a prerequisite for managing FTP users with this tool. ```bash wo stack install --proftpd ``` -------------------------------- ### Make Script Executable Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/post-install-wp.md This command grants execute permissions to the post-installation script, allowing it to be run directly. It's a standard practice for shell scripts intended for execution. ```bash #! /bin/bash DOM=$1 if test -z $DOM ; then echo "ERROR: no domain informed!" exit 1 fi if [ ! -e "/var/www/${DOM}/wp-config.php" ] ; then echo "ERROR: ${DOM} does not appear to be a valid WordPress!" exit 1 fi cd "/var/www/${DOM}/htdocs" || exit 1 ### Install plugins from official repository wp plugin install wordpress-seo --allow-root --activate wp plugin install wordpress-hide-login --allow-root --activate ### Install custom plugin wp plugin install https://downloads.sarmento.org/customplugin.zip --allow-root wp plugin activate customplugin --allow-root ### Install custom theme wp theme install https://downloads.sarmento.org/awesometheme.zip --allow-root wp theme activate awesometheme --allow-root ### Fix permissions chown www-data:www-data wp-content -R cd - exit 0 ``` -------------------------------- ### Create Basic HTML Site Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/site.md Creates a simple HTML website using the 'wo site create' command with the '--html' flag. This is a fundamental operation for setting up static content. ```bash wo site create site.tld --html ``` -------------------------------- ### Install MySQL Client with WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/remote-mysql-server.md Installs the MySQL client necessary for WordOps to connect to a MySQL server. This command is executed on the WordOps server. ```bash wo stack install --mysqlclient ``` -------------------------------- ### Reboot Server After HWE Installation Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/ubuntu-lts-hwe-stacks.md Reboots the server to apply the newly installed HWE kernel. This command initiates an immediate shutdown and restart of the system. ```bash sudo shutdown -r now ``` -------------------------------- ### Create PHP and MySQL Site with WordOps Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Creates a PHP site that includes a MySQL database. This command is suitable for dynamic websites requiring database interaction. ```bash wo site create site.tld --mysql ``` -------------------------------- ### Create Empty WordPress Site with Redis Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/wordpress-migration.md This command creates a new, empty WordPress site with the specified domain and enables Redis caching. The --vhostonly flag creates only the virtual host file. ```bash wo site create mydomain.tld --wpredis --vhostonly ``` -------------------------------- ### Create Site with Let's Encrypt SSL and HSTS Enabled Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/site.md Creates a new site with a Let's Encrypt SSL certificate and enables HTTP Strict Transport Security (HSTS) by adding the `--hsts` flag. ```bash wo site create site.tld --wp --letsencrypt --hsts ``` -------------------------------- ### Set Default WordPress Language via WP-CLI Config Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/wp-language.md This snippet demonstrates how to configure WP-CLI to set the default language for new WordPress installations. It involves creating or modifying the `~/.wp-cli/config.yml` file and specifying the desired locale. ```yaml core download: locale: pt_BR ``` -------------------------------- ### Create WordPress Multisite with Wildcard SSL Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/getting-started/creating-sites.md Sets up a WordPress multisite installation on a subdomain and secures it with a wildcard SSL certificate using a specified DNS provider (e.g., Cloudflare). Requires prior DNS API configuration. ```bash wo site create site.tld --wpsubdomain --letsencrypt=wildcard --dns=dns_cf ``` -------------------------------- ### Install WordOps Stack Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/stack.md Installs the default WordOps web, admin, and utils stacks. This includes Nginx, the current supported PHP version, MariaDB, Netdata, Fail2Ban, WordOps dashboard, phpMyAdmin, Adminer, and MySQLtuner. Configuration for default MariaDB and PHP versions can be set in `/etc/wo/wo.conf`. ```bash wo stack install ``` ```bash wo stack install --web ``` -------------------------------- ### Rebuild Sendmail Configuration Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/how-to/setup-sendmail-with-sendgrid.md Rebuilds Sendmail's configuration files after modifying the sendmail.mc file. ```bash make -C /etc/mail ``` -------------------------------- ### Get MySQL Configuration Information Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/info.md This command retrieves specific configuration details related to MySQL. ```bash wo info --mysql ``` -------------------------------- ### Get Nginx Configuration Information Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/info.md This command retrieves specific configuration details related to Nginx. ```bash wo info --nginx ``` -------------------------------- ### WordOps Command Structure Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands.md Demonstrates the basic syntax for using WordOps commands. It shows that commands are executed using the 'wo' executable followed by a specific command and optional arguments. ```bash wo (command) [options] ``` -------------------------------- ### Create Site with Let's Encrypt SSL (Webroot) Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/guides/manage-ssl-certificates.md Creates a new WordPress site and issues a Let's Encrypt SSL certificate using the default Webroot validation mode. ```bash wo site create site.tld --wp -le ``` -------------------------------- ### Get PHP 8.3 Configuration Information Source: https://github.com/wordops/docs.wordops.net/blob/master/docs/commands/info.md This command retrieves specific configuration details for PHP version 8.3. ```bash wo info --php83 ```