🚀 Installation Commands
Install EasyInstall
# Using wget (recommended)
' curl -sL https://install.easyinstall.site/script | bash '
Or
' curl -sL https://easy.easyinstall.site/script | bash '
# Direct download
wget -O easyinstall.sh https://raw.githubusercontent.com/sugandodrai/easyinstall/main/easyinstall.sh
chmod +x easyinstall.sh
./easyinstall.sh
Installation Options
# Silent install (no output)
wget -qO- install.easyinstall.site | bash > /dev/null 2>&1
# Install with debug log
wget -qO- install.easyinstall.site | bash 2>&1 | tee install.log
# Install with custom database name
export DB_NAME="mycustomdb" && wget -qO- install.easyinstall.site | bash
# Install with custom WordPress path
export WP_PATH="/var/www/mysite" && wget -qO- install.easyinstall.site | bash
# Skip monitoring setup
export SKIP_MONITORING="yes" && wget -qO- install.easyinstall.site | bash
🎮 Main Management Commands
System Information & Status
easyinstall status # Show system status
easyinstall report # Generate performance report
easyinstall monitor # Run advanced monitor
easyinstall logs nginx # View Nginx logs
easyinstall logs php # View PHP logs
easyinstall logs mysql # View MySQL logs
easyinstall logs all # View all logs
Domain & SSL Management
# Set domain with auto-SSL (recommended)
easyinstall domain example.com -ssl=on
# Set domain with specific PHP version
easyinstall domain example.com -php*v=8.2 -ssl=on
# Set domain and clear cache
easyinstall domain example.com -clearcache
# Install SSL only
easyinstall ssl example.com admin@example.com
# Migrate from IP to domain
easyinstall migrate example.com
# Check SSL certificates
certbot certificates
Backup & Restore
# Create weekly backup
easyinstall backup weekly
# Create monthly backup
easyinstall backup monthly
# Restore from backup
easyinstall restore
# List available backups
ls -la /backups/weekly/
ls -la /backups/monthly/
Remote Storage Management
# Add new remote storage
easyinstall remote add
# List configured remotes
easyinstall remote list
# Check remote status
easyinstall remote status
# List remote backups
easyinstall remote backups
# Test remote connection
easyinstall remote test remote-name
☁️ CDN Management Commands (easy-cdn)
Cloudflare Integration
# Advanced Cloudflare setup
easy-cdn cloudflare example.com your-api-key email@example.com
# Cloudflare with specific zone
easy-cdn cloudflare example.com your-api-key email@example.com zone-id
# Quick Cloudflare setup (minimal)
easy-cdn cloudflare example.com your-api-key email@example.com
BunnyCDN Integration
# Basic BunnyCDN setup
easy-cdn bunnycdn example.com your-api-key storage-zone
# BunnyCDN with custom pull zone
easy-cdn bunnycdn example.com your-api-key storage-zone pull-zone-name
# BunnyCDN with debug output
easy-cdn bunnycdn example.com your-api-key storage-zone --debug
QuickCache Management
# Configure QuickCache
easy-cdn quickcache
# Reset QuickCache
easy-cdn quickcache --reset
# QuickCache with custom options
easy-cdn quickcache --cache-size=200 --expiry=7200
CDN Status & Maintenance
# Show CDN status
easy-cdn status
# Show detailed CDN info
easy-cdn status --verbose
# Purge all CDN caches
easy-cdn purge
# Purge specific CDN
easy-cdn purge --cloudflare
easy-cdn purge --bunnycdn
easy-cdn purge --quickcache
📧 Email Commands (easy-mail)
# Set admin email
easyinstall mail config admin@example.com
# Show current admin email
easyinstall mail config
# Send email
easyinstall mail send user@example.com "Subject" "Message body"
# Send email with file attachment
easyinstall mail send user@example.com "Subject" "Message" -a /path/to/file
# Test email system
easyinstall mail test
🏢 Multi-Site Commands (easy-site)
# Create new WordPress site
easy-site create example.com
# Create site with custom PHP version
easy-site create example.com --php=8.2
# Create site with SSL
easy-site create example.com --ssl
# List all sites
easy-site list
# Show detailed site info
easy-site list --verbose
# Delete site
easy-site delete example.com
# Delete site with confirmation
easy-site delete example.com --force
# Backup specific site
easy-site backup example.com
# Restore specific site
easy-site restore example.com
📊 Monitoring Commands
Advanced Monitor
# Run full monitor check
/usr/local/bin/advanced-monitor
# Run specific checks
/usr/local/bin/advanced-monitor --check=cpu
/usr/local/bin/advanced-monitor --check=memory
/usr/local/bin/advanced-monitor --check=disk
/usr/local/bin/advanced-monitor --check=services
/usr/local/bin/advanced-monitor --check=ssl
/usr/local/bin/advanced-monitor --check=security
# Run monitor with alerts
/usr/local/bin/advanced-monitor --alert
# Run monitor and send report
/usr/local/bin/advanced-monitor --email
Telegram Alerts
# Setup Telegram alerts
setup-telegram
# Test Telegram alerts
setup-telegram --test
# Disable Telegram alerts
setup-telegram --disable
Performance Reports
# Generate report
easy-report
# Save report to file
easy-report > /root/report-$(date +%Y%m%d).txt
# Email report
easy-report | mail -s "Server Report" admin@example.com
⚡ Performance & Cache Commands
# Clear all caches
easyinstall cache clear
# Clear Nginx cache only
rm -rf /var/cache/nginx/*
systemctl reload nginx
# Clear Redis cache
redis-cli flushall
# Clear PHP OPcache
php -r "opcache_reset();"
# Enable Redis cache for WordPress
easyinstall redis enable
# Disable Redis cache
easyinstall redis disable
# Check cache status
easyinstall cache status
🔧 Service Management
# Restart services
easyinstall restart nginx
easyinstall restart php
easyinstall restart mysql
easyinstall restart redis
easyinstall restart all
# Stop services
systemctl stop nginx
systemctl stop php*-fpm
systemctl stop mariadb
systemctl stop redis-server
# Start services
systemctl start nginx
systemctl start php*-fpm
systemctl start mariadb
systemctl start redis-server
# Check service status
systemctl status nginx
systemctl status php*-fpm
systemctl status mariadb
systemctl status redis-server
systemctl status fail2ban
systemctl status netdata
systemctl status glances
🔐 Security Commands
# Check firewall status
ufw status verbose
# Add custom firewall rule
ufw allow 8080/tcp
# Remove firewall rule
ufw delete allow 8080/tcp
# Check Fail2ban status
fail2ban-client status
fail2ban-client status sshd
fail2ban-client status nginx-http-auth
fail2ban-client status wordpress
# Unban IP
fail2ban-client set sshd unbanip 1.2.3.4
# Check failed login attempts
grep "Failed password" /var/log/auth.log
grep "Failed password" /var/log/auth.log | tail -20
💾 Database Commands
# Access MySQL
mysql -u root -p
# Show databases
mysql -e "SHOW DATABASES;"
# Show WordPress database tables
mysql -e "USE wordpress_db; SHOW TABLES;"
# Backup database manually
mysqldump -u root -p wordpress_db > backup.sql
# Restore database manually
mysql -u root -p wordpress_db < backup.sql
# Check database size
mysql -e "SELECT table_schema, ROUND(SUM(data_length+index_length)/1024/1024,2) AS 'Size (MB)' FROM information_schema.tables GROUP BY table_schema;"
# Optimize database
mysql -e "OPTIMIZE TABLE wordpress_db.wp_options;"
mysqlcheck -o --all-databases
📁 File Management
# WordPress directory
cd /var/www/html/wordpress
# List WordPress files
ls -la /var/www/html/wordpress
# Check disk usage
du -sh /var/www/html/wordpress
du -sh /var/www/html/ez.easyinstall.site/wp-content/uploads/
# Fix permissions
chown -R www-data:www-data /var/www/html/wordpress
chmod -R 755 /var/www/html/wordpress
chmod -R 775 /var/www/html/ez.easyinstall.site/wp-content/uploads
# View WordPress config
cat /var/www/html/wordpress/wp-config.php
📜 Log Viewing Commands
# Nginx logs
tail -f /var/log/nginx/wordpress_access.log
tail -f /var/log/nginx/wordpress_error.log
tail -100 /var/log/nginx/wordpress_error.log
# PHP logs
tail -f /var/log/php*-fpm.log
tail -f /var/log/php*-fpm.log | grep ERROR
# MySQL logs
tail -f /var/log/mysql/error.log
# System logs
tail -f /var/log/syslog
tail -f /var/log/auth.log
# EasyInstall logs
tail -f /var/log/advanced-monitor.log
tail -f /var/log/alert-history.log
tail -f /var/log/easy-cdn.log
# Backup logs
tail -f /backups/logs/backup-*.log
🛠️ WP-CLI Commands
# Navigate to WordPress
cd /var/www/html/wordpress
# WordPress core commands
wp core version
wp core update
wp core check-update
# Plugin commands
wp plugin list
wp plugin install plugin-name --activate
wp plugin update --all
wp plugin deactivate plugin-name
# Theme commands
wp theme list
wp theme install theme-name --activate
# User commands
wp user list
wp user create username email@example.com --role=author
wp user update 1 --user_pass=newpassword
# Database commands
wp db size
wp db optimize
wp db repair
# Cache commands
wp cache flush
wp transient delete --all
# Search-replace (for domain migration)
wp search-replace 'http://old-domain' 'https://new-domain' --skip-columns=guid
🔄 Update Commands
# Update system packages
easyinstall update
# Update WordPress
cd /var/www/html/wordpress
wp core update
wp plugin update --all
wp theme update --all
# Update PHP version
apt update
apt install php8.3-fpm php8.3-mysql php8.3-cli php8.3-curl php8.3-xml
# Update EasyInstall script
wget -O /usr/local/bin/easyinstall https://raw.githubusercontent.com/sugandodrai/easyinstall/main/easyinstall.sh
chmod +x /usr/local/bin/easyinstall
🧹 Cleanup Commands
# Clean temp files
easyinstall clean
# Clean system
apt autoremove -y
apt autoclean
apt clean
# Clean old logs
find /var/log -name "*.log" -mtime +30 -delete
# Clean old backups (keep last 5)
cd /backups/weekly && ls -1t | tail -n +6 | xargs rm -rf
# Clean Nginx cache
rm -rf /var/cache/nginx/*
systemctl reload nginx
# Clean all caches
sync && echo 3 > /proc/sys/vm/drop_caches
📊 System Information Commands
# System info
uname -a
lsb_release -a
hostnamectl
# Resource usage
htop
top
free -h
df -h
du -sh /* 2>/dev/null | sort -hr | head -20
# Network
ip addr show
netstat -tulpn
ss -tulpn
# Processes
ps aux --sort=-%cpu | head -20
ps aux --sort=-%mem | head -20
# Uptime
uptime
who -b
last reboot
⚡ Quick Aliases
After installation, these aliases are available:
e # easyinstall
eb # easyinstall backup
er # easyinstall restore
es # easyinstall status
ere # easyinstall report
cdn # easy-cdn
Example usage:
es # Shows system status
eb weekly # Creates weekly backup
cdn status # Shows CDN status
🚨 Emergency Commands
# Complete system restart
reboot
# Restart all services
systemctl restart nginx php*-fpm mariadb redis-server fail2ban netdata
# Emergency WordPress fix
cd /var/www/html/wordpress
wp core download --force
wp db repair
wp cache flush
# Reset WordPress admin password
cd /var/www/html/wordpress
wp user update 1 --user_pass=newpassword
# Disable all plugins (if site crashes)
cd /var/www/html/wordpress
wp plugin deactivate --all
# Enable all plugins
cd /var/www/html/wordpress
wp plugin activate --all
📋 Command Summary Table
| Category | Command | Description |
|---|---|---|
| Install | wget -qO- install.easyinstall.site | bash | One-click install |
| Status | easyinstall status | System status |
| Report | easyinstall report | Performance report |
| Backup | easyinstall backup weekly | Create backup |
| Restore | easyinstall restore | Restore from backup |
| Domain | easyinstall domain example.com -ssl=on | Add domain with SSL |
| CDN | easy-cdn status | CDN status |
| Monitor | easyinstall monitor | Run advanced monitor |
| Logs | easyinstall logs nginx | View logs |
| Cache | easyinstall cache clear | Clear all caches |
| Restart | easyinstall restart all | Restart all services |
| Update | easyinstall update | Update system |
🎯 Most Used Commands
# After installation, these are the most useful:
easyinstall status # Quick system check
easyinstall domain yourdomain.com -ssl=on # Add your domain
easyinstall backup weekly # Create backup
easyinstall report # Check performance
easy-cdn status # Check CDN
Ready to transform your VPS? Just run:
' curl -sL https://install.easyinstall.site/script | bash '
Or
' curl -sL https://easy.easyinstall.site/script | bash '
