Skip to main content
Webinoly makes it easy to create and configure different types of sites on your NGINX server. You can create HTML sites, PHP sites, WordPress sites with database setup, or standalone MySQL databases.

Site Types

Webinoly supports several site types:
  • HTML - Static HTML sites
  • PHP - PHP-enabled sites
  • WordPress - Full WordPress installation with automatic database setup
  • MySQL - Database-only (no site files)
  • Empty - Minimal configuration for custom setups
  • Reverse Proxy - Proxy to backend applications
  • Parked - Parked/alias domains

Creating an HTML Site

Create a static HTML site:
sudo site example.com -html
HTML sites are configured with:
  • Static file serving
  • index.html, index.htm as default indexes
  • Basic security headers
  • Access and error logging

HTML in a Subfolder

You can create HTML sites in subfolders:
sudo site example.com -html -subfolder=/blog
Files will be served from /var/www/example.com/htdocs/blog/.

Creating a PHP Site

Create a PHP-enabled site:
sudo site example.com -php
PHP sites include:
  • PHP-FPM processing
  • FastCGI configuration
  • index.php, index.html, index.htm as default indexes
  • Security headers
  • Common PHP security restrictions

Creating a WordPress Site

1

Basic WordPress Installation

Create a WordPress site with automatic setup:
sudo site example.com -wp
This will:
  • Download the latest WordPress version
  • Create a new MySQL database
  • Generate a wp-config.php file
  • Set up secure database credentials
  • Configure NGINX for WordPress
2

Interactive Setup

During installation, you’ll be prompted for:
  • Database Host (default: localhost)
  • Database Name (default: sanitized domain name)
  • Database User (default: sanitized domain name)
  • Database Password (auto-generated or custom)
  • Table Prefix (default: wp_)
3

Verify Installation

After creation, visit your domain to complete the WordPress installation through the web interface.Default file location: /var/www/example.com/htdocs/

WordPress in a Subfolder

Install WordPress in a subfolder:
sudo site example.com -wp -subfolder=/blog
WordPress will be installed at /var/www/example.com/htdocs/blog/ and accessible at example.com/blog.

Unattended WordPress Installation

For automated deployments, use custom database parameters:
sudo site example.com -wp=[setupmysql,setupwp,dbhost,dbname,dbuser,dbpass,dbpref]
sudo site example.com -wp=[true,true,localhost,mydb,myuser,random,wp_]

Parameters Explained

  • setupmysql - Create database and user (true/false)
  • setupwp - Create wp-config.php (true/false)
  • dbhost - Database host (e.g., localhost, 192.168.1.100:3306)
  • dbname - Database name
  • dbuser - Database username
  • dbpass - Database password (use random for auto-generation)
  • dbpref - WordPress table prefix (e.g., wp_)

External Database Configuration

Webinoly supports external MySQL/MariaDB databases:
sudo site example.com -wp=[true,true,db.example.com:3306,wpdb,wpuser,password,wp_,root,rootpass]
External database parameters:
  • extdbuser - Master database username (8th parameter)
  • extdbpass - Master database password (9th parameter)
When using external databases:
  • Port 3306 must be accessible from your server
  • Master credentials are needed to create databases and users
  • Some cloud database services (like AWS RDS) may not support all privilege grants

Creating a MySQL Database Only

Create a database without installing WordPress:
sudo site example.com -mysql
Or create a standalone database:
sudo site -mysql
This creates:
  • A new database
  • A database user with appropriate privileges
  • Secure auto-generated credentials (displayed after creation)

Creating an Empty Site

For custom configurations:
sudo site example.com -empty
This creates a minimal NGINX configuration where you can add your own rules in:
  • /var/www/example.com/*-nginx.conf

Completely Blank Configuration

For maximum flexibility:
sudo site example.com -empty=blank
This removes all default includes, giving you complete control over the NGINX configuration.

Site Creation Options

Enable FastCGI Cache on Creation

Create a WordPress site with caching enabled:
sudo site example.com -wp -cache=on
This automatically:
  • Enables FastCGI cache
  • Installs Nginx Helper plugin
  • Installs Redis Object Cache plugin

Set Environment Type

Specify the WordPress environment type:
sudo site example.com -wp -env=staging
Valid environment types:
  • production
  • staging
  • development
  • local

File Locations

After creating a site:
LocationPurpose
/etc/nginx/sites-available/example.comNGINX configuration
/etc/nginx/sites-enabled/example.comSymlink (site is active)
/var/www/example.com/htdocs/Website files
/var/www/example.com/wp-config.phpWordPress configuration (if WP)
/var/log/nginx/example.com.access.logAccess logs
/var/log/nginx/example.com.error.logError logs

Automatic Features

When creating sites, Webinoly automatically:
  • Sets proper file permissions (www-data:www-data)
  • Enables both www and non-www domains (for root domains)
  • Configures force redirect to non-www by default
  • Sets up logging
  • Includes security headers
  • Creates site directory structure
  • Domain names cannot contain scheme or path (use example.com, not https://example.com/path)
  • IP addresses cannot be used as domain names (set as default site instead)
  • Sites named default are reserved for system use
  • Subdomains automatically receive single-domain configuration (www not added)

Next Steps

WordPress Features

Configure WordPress-specific features like multisite, caching, and plugins

SSL Certificates

Enable HTTPS with Let’s Encrypt SSL certificates

Site Management

Manage existing sites - enable/disable, delete, and configure

Reverse Proxy

Set up reverse proxy for Node.js, Python, or other applications

Build docs developers (and LLMs) love