Categories
Wordops

Install WordPress with wordops

Install WordPress

This will install WordPress with nginx fastcgi_cache, php 7.4, and Let’s encrypt. Replace site.com with your website URL.

wo site create --wpfc --php74 -le --force site.com 

Reinstall let’s encrypt security certificate

If the let’s encrypt SSL certificate fails you can attempt to reinstall the security certificate with

wo site update -le --force site.com 

Logs

Logs are available, wo log show --debug

Clear Cache

Clear the cache via WordPress, “Purge Cache” or cli, wo clean
Cleanes NGINX FastCGI cache, Opcache, Redis Cache and restart Nginx. You can also manually delete the nginx cache rm -rf /var/run/nginx-cache/*

Categories
Wordops

Maintaining Wordops

Upgrade Wordops to latest version

  • wo update

Maintaining Wordops stack

  • wo stack upgrade Upgrade stack safely. Sites may be down for few seconds if upgrading Nginx, PHP-FPM, MariaDB or Redis
  • wo maintenance Update server packages to latest version.
    Note that this will also update your Linux packages as well. (after SSH the message may appear, “…updates can be installed immediately”)
  • wo Clean Cleans NGINX FastCGI cache, Opcache, Redis Cache

Helpful commands for maintaining Wordops

  • wo stack restart
  • wo stack restart --php
  • wo stack reload
  • wo stack status

Categories
Wordops

Setup wordops

#Install

  • wget -qO wo wops.cc && sudo bash wo
  • source /etc/bash_completion.d/wo_auto.rc # bash_completion

#Alias for sudo wo

  • echo -e "alias wo='sudo -E wo'" >> $HOME/.bashrc
  • source $HOME/.bashrc