Overview
Thestack command manages your server’s software stack. Install and remove components like Nginx, PHP, MySQL/MariaDB, and various tools with a single command.
Basic Usage
Installing Components
Nginx (HTML)
Install Nginx web server:PHP
Install PHP with Nginx:MySQL/MariaDB
Install MySQL or MariaDB database server:The database engine (MySQL vs MariaDB) is determined by the
db-engine configuration. Default is MariaDB.LEMP Stack
Install complete LEMP stack (Linux, Nginx, MySQL/MariaDB, PHP):Build Profiles
Control which additional packages are installed:Installation profile:
light- Minimal installation (core components only)basic- Standard installation (includes common tools)- (default) - Full installation (all recommended packages)
Additional Tools
Let’s Encrypt
Install SSL certificate management:Backup Tools
Install backup utilities (Duplicity and Duply):Postfix (Mail Server)
Install Postfix mail server:Redis (Object Cache)
Install Redis with PHP extension:Memcached (Object Cache)
Install Memcached with PHP extension:phpMyAdmin
Install phpMyAdmin database management interface:Requires both Nginx and PHP to be installed. Accessible via tools site (default: https://server-ip:22222)
Removing Components
Use the-purge argument to remove installed components.
Remove Nginx
Removal options:
true- Remove with confirmationforce- Remove without confirmation
- Removes all sites (prompts separately)
- Removes phpMyAdmin if installed
- Removes SSL tools if installed
Remove PHP
- phpMyAdmin
- Postfix
- Redis PHP extension
- Memcached PHP extension
Remove MySQL/MariaDB
Remove Additional Tools
-purge=force for unattended removal.
Remove Entire Stack
Remove all Webinoly stack components:- Nginx and all sites
- PHP and all extensions
- MySQL/MariaDB and all databases
- All additional tools (SSL, backups, phpMyAdmin, etc.)
Version Management
Change PHP Version
Switch to a different PHP version:PHP version to install. Supported versions:
8.48.38.28.18.07.47.37.27.17.05.6
- Backup current configuration (if applicable)
- Remove current PHP version
- Install new PHP version
- Restore configuration
- Reinstall phpMyAdmin if it was installed
Changing PHP version preserves your tools profile (Postfix, Redis, Memcached)
Change MySQL/MariaDB Version
Switch to a different database version:Database version to install. Available versions depend on your
db-engine setting.MariaDB versions:11.8,11.6,11.4,11.2,11.010.11,10.6,10.5,10.4,10.3
8.4,8.0
- Remove current database (keeps data with
keep-data) - Install new version
- Migrate data to new version
- Reinstall phpMyAdmin if it was installed
Stack Information
Display information about installed stack:- Installed components and versions
- Available updates
- Configuration details
- Server resources
Same as
sudo webinoly -infoInstallation Examples
Basic Web Server
PHP Application Server
Full WordPress Server
Minimal Installation
Development Server
Version Migration Examples
Upgrade PHP
Upgrade MySQL/MariaDB
Component Dependencies
Nginx Dependencies
- Required for: PHP sites, phpMyAdmin, tools site
- Installs: Nginx, basic configuration, default site
PHP Dependencies
- Requires: Nginx (will prompt if not installed)
- Installs: PHP-FPM, common extensions, OpCache
- Optional: Postfix, Redis, Memcached
MySQL/MariaDB Dependencies
- Standalone installation (no requirements)
- Installs: Database server, client tools
Tool Dependencies
| Tool | Requires | Purpose |
|---|---|---|
| Let’s Encrypt | Nginx | SSL certificates |
| Backups | None | Server/site backups |
| Postfix | PHP | Email sending |
| Redis | PHP | Object caching |
| Memcached | PHP | Object caching |
| phpMyAdmin | Nginx, PHP, MySQL | Database management |
Notes
- All commands require
sudo(root privileges) - Installations use official repositories for latest stable versions
- Most operations reload services automatically
- Use
-helpto see all available options - Check
/opt/webinoly/webinoly.conffor version settings
Configuration Files
Nginx
- Main config:
/etc/nginx/nginx.conf - Sites:
/etc/nginx/sites-available/ - Common configs:
/etc/nginx/common/
PHP
- PHP-FPM config:
/etc/php/[version]/fpm/ - php.ini:
/etc/php/[version]/fpm/php.ini - Pool config:
/etc/php/[version]/fpm/pool.d/www.conf
MySQL/MariaDB
- Main config:
/etc/mysql/my.cnf - Custom configs:
/etc/mysql/conf.d/ - Data directory:
/var/lib/mysql/
Troubleshooting
Installation Fails
Version Change Fails
Service Issues
See Also
- Webinoly Command - Main Webinoly management
- Site Command - Create and manage sites
- Log Command - View service logs