Introduction
Webinoly provides a comprehensive set of command-line tools for managing your web server stack. All commands follow consistent patterns and support both interactive and unattended modes.Common Patterns
Command Structure
All Webinoly commands follow this general syntax:- command: The main command (
webinoly,site,stack,httpauth,log) - domain: Target domain (where applicable)
- option: Primary action or configuration (prefixed with
-) - argument: Additional parameters to modify behavior
Interactive vs. Unattended Mode
Most commands can run in two modes: Interactive Mode - Prompts for missing information:Force Flag
Many destructive operations support aforce value to skip confirmation prompts:
Exit Codes
Webinoly commands use standard exit codes:- 0: Success
- 1: Error (check error message for details)
Common Options
Help
Display help for any command:-h, --help, --h
Version
Check installed versions:-v, -V
List
View installed components or configured items:Info
Display detailed information:Configuration File
Webinoly stores configuration in/opt/webinoly/webinoly.conf. You can read and write custom variables:
Working with Subfolders
Many commands support WordPress installations in subfolders:- Must start with
/ - Can contain letters, numbers, underscores, hyphens, and forward slashes
- Cannot end with
/ - Example:
/blog,/shop,/en/blog
File Locations
Nginx Configuration
- Sites available:
/etc/nginx/sites-available/ - Sites enabled:
/etc/nginx/sites-enabled/ - Main config:
/etc/nginx/nginx.conf - Custom configs:
/etc/nginx/apps.d/
Website Files
- Document root:
/var/www/[domain]/htdocs/ - Custom Nginx config:
/var/www/[domain]/*-nginx.conf - Site-specific HTTP auth:
/etc/nginx/apps.d/.htpasswd-[domain]
Logs
- Nginx access:
/var/log/nginx/[domain].access.log - Nginx error:
/var/log/nginx/[domain].error.log - PHP-FPM:
/var/log/php/[version]/fpm.log - MySQL/MariaDB:
/var/log/mysql/
SSL Certificates
- Let’s Encrypt:
/etc/letsencrypt/live/[domain]/ - Custom certificates: Specified during installation
Best Practices
Use sudo
All Webinoly commands require root privileges:Verify Before Purging
Always verify your configuration before removing components:Backup Before Major Changes
Create backups before version changes or major updates:Test Configuration
Nginx configuration is automatically tested and reloaded after most operations. If you make manual changes:Error Handling
When errors occur:- Read the error message - Webinoly provides descriptive error messages
- Check logs - Use the
logcommand to investigate - Verify dependencies - Ensure required packages are installed
- Check file permissions - Ensure proper ownership of web files
Next Steps
Site Management
Create and manage websites
Stack Management
Install and configure server components
HTTP Authentication
Secure your sites with HTTP auth
Log Management
Monitor and debug your server