Skip to content

Server Management


Server Access

SonarQube Server

ssh -i ~/aws-keys/enfection-sonarqube-key.pem ubuntu@13.232.46.24

Staging Server

ssh -i ~/aws-keys/enfection-staging-key.pem ubuntu@13.234.20.114

SonarQube Management

# Status check
cd /opt/sonarqube && docker-compose ps

# Restart
docker-compose restart

# Logs
docker logs sonarqube -f --tail=50

# Stop/Start
docker-compose down
docker-compose up -d

Staging Server Management

All Sites Status

# CloudPanel sites list
ls /home/

# Disk usage
df -h

# Docker (if used)
docker ps

Site Theme Path

/home/enfection-[client]/htdocs/[client].development.enfection.com/wp-content/themes/

Nginx Status

sudo systemctl status nginx
sudo nginx -t
sudo systemctl reload nginx

Fix Theme Permissions (New Site)

sudo chmod 755 /home/enfection-[client]/htdocs/[client].development.enfection.com/wp-content/themes
sudo chown -R ubuntu:ubuntu /home/enfection-[client]/htdocs/[client].development.enfection.com/wp-content/themes

SSL Renewal

Auto renewal on. Manual check:

sudo certbot renew --dry-run
sudo certbot certificates

Disk Usage Check

df -h
du -sh /home/*/htdocs/* | sort -rh | head -20