Overview
Thesite command is used to create, manage, delete, and configure websites on your Webinoly server.
Syntax:
Site Creation Options
-html
Create a static HTML site.
Example:
-php
Create a PHP site without WordPress or MySQL.
Example:
-mysql
Create a PHP site with MySQL database (no WordPress).
Example:
setupmysql: true/false - Setup MySQL databasedbhost: Database host (e.g., localhost or remote IP)dbname: Database namedbuser: Database usernamedbpass: Database password (use “random” for auto-generated)extdbuser: External database admin userextdbpass: External database admin password
-wp
Create a WordPress site.
Example:
setupmysql: true/false - Setup MySQL databasesetupwp: true/false - Install WordPressdbhost: Database hostdbname: Database namedbuser: Database usernamedbpass: Database password (use “random” for auto-generated)dbpref: WordPress table prefix (default: wp_)extdbuser: External database admin userextdbpass: External database admin password
-empty
Create an empty site for custom Nginx configuration.
Example:
/var/www/example.com/*-nginx.conf
-parked
Create a parked domain that points to another site.
Example:
-proxy
Create a reverse proxy site.
Example:
-forward
Create a domain forward/redirect.
Example:
Site Management Options
-on
Enable a disabled site.
Example:
-off
Disable a site without deleting it.
Example:
-delete
Delete a site completely.
Example:
-delete-all
Delete all sites on the server.
Example:
-list
List all sites on the server.
Example:
-info
Display detailed information about a site.
Example:
SSL/TLS Options
-ssl
Manage SSL certificates for sites.
Enable SSL (Let’s Encrypt):
-force-redirect
Force www or non-www redirects.
Force www:
Cache Management
-cache
Manage FastCGI cache for WordPress sites.
Enable cache:
WordPress Specific Options
-multisite-convert
Convert WordPress single site to Multisite.
Subdomain multisite:
-clone-from
Clone a site from an existing site.
Clone site:
-replace-content
Search and replace content in WordPress database.
Replace URLs:
-env
Set WordPress environment type.
Available environments:
production- Production environmentstaging- Staging environmentdevelopment- Development environmentlocal- Local environment
Redirection Management
-redirection
Manage URL redirections.
Add redirection:
Arguments
-root
Specify custom root directory.
Example:
-root-path
Specify custom subdirectory within htdocs.
Example:
/var/www/example.com/htdocs/public
-subfolder
Operate on a subfolder within a site.
Example:
-external-db
Use external database server.
Example:
-wildcard
Create wildcard SSL certificate.
Example:
-ignore-ssl
Ignore SSL errors during operations.
Example:
-ssl-crt
Path to custom SSL certificate file.
Example:
-ssl-key
Path to custom SSL key file.
Example:
-manual
Use manual DNS challenge for SSL.
Example:
-test-cert
Use Let’s Encrypt staging server for testing.
Example:
-overwrite
Overwrite existing site during clone operations.
Example:
-wp-cache-plugins
Enable cache plugin compatibility.
Example:
-dedicated-reverse-proxy
Use dedicated reverse proxy configuration.
Example:
-cache-valid
Set cache validity period.
Examples:
-skip-cache
Define URLs to skip from cache.
Example:
-skip-cookie-cache
Define cookies that skip cache.
Example:
-query-string-cache
Define query strings to include in cache.
Example:
-query-string-never-cache
Define query strings to never cache.
Example:
-query-string-cache-default
Set default behavior for query strings.
Options:
ignore- Ignore query strings (default)include- Include query strings in cache key
-reset
Reset cache configuration to defaults.
Example:
-from
Source value for replace-content or redirection operations.
Example:
-to
Destination value for replace-content or redirection operations.
Example:
-http-code
HTTP status code for redirections.
Common codes:
301- Permanent redirect302- Temporary redirect307- Temporary redirect (preserves method)308- Permanent redirect (preserves method)