Skip to content

Creating site

You can create site with WordOps by using the command wo site create.

WordOps will always:

  • install required stack if needed
  • configure Nginx vhost
  • create site directory

WordOps can also:

  • create the site database
  • install WordPress (with or without caching)
  • secure site with Let's Encrypt SSL certificate

You can see all the options available to create site in the command list site create

Additional information

Component Path
Site files /var/www/site.tld/htdocs
wp-config.php /var/www/site.tld/wp-config.php
Additional Nginx conf /var/www/site.tld/conf/nginx/
Site access/error logs /var/www/site.tld/logs

Examples

Basic site

Basic html site

wo site create site.tld --html

Simple PHP site

wo site create site.tld --php

Simple PHP + MySQL site

wo site create site.tld --mysql

WordPress site

Simple WordPress site

wo site create site.tld --wp

WordPress site with Nginx fastcgi_cache

wo site create site.tld --wpfc

WordPress site with Redis cache

wo site create site.tld --wpredis

PHP 8.1

Simple PHP 8.1 + MySQL site

wo site create site.tld --mysql --php81

Simple PHP 8.1 site

wo site create site.tld --php81

Simple WordPress site with PHP 8.1

wo site create site.tld --wp --php81

Let's Encrypt

WordPress site secured with Let's Encrypt

wo site create site.tld --wp -le

WordPress site on subdomain secure with Let's Encrypt

wo site create sub.site.tld --wp -le

Since the release v3.9.8.4, WordOps will automatically detect if the site is a domain or a subdomain, and will not issue a certificate for www alias with subdomains

WordPress site with PHP 8.1 and secured by Let's Encrypt

wo site create site.tld --wp --php81 -le

Create WordPress subdomain multisite secured with a Let's Encrypt Wildcard SSL certificate

Info

More information about wildcard SSL certificates our guide about DNS API configuration

wo site create site.tld --wpsubdomain --letsencrypt=wildcard --dns=dns_cf