CWP (CentOS Web Panel) CLI Command Reference
A reference of the most useful command-line operations for administering a CentOS Web Panel (CWP) server.
CWP Service Management
# Restart the CWP control panel web server:
service cwpsrv restart
# Reload CWP panel web server (config changes):
service cwpsrv reload
# Restart CWP PHP-FPM (used by admin/user panels, phpMyAdmin, Roundcube):
service cwp-phpfpm restart
SSL Certificate Management
# Generate/renew the hostname SSL certificate:
sh /scripts/generate_hostname_ssl
# Force AutoSSL renewal for all domains:
sh /scripts/autossl
Web Server Controls
# Test Apache configuration:
apachectl -t
# Restart Apache:
service httpd restart
# Restart Nginx:
service nginx restart
CWP Updates
# Update CWP to the latest version:
sh /scripts/update_cwp
# Update CWP PHP packages:
yum update cwpphp --enablerepo=cwp
Notes
- All commands require root access.
- CWP auto-starts services on boot; use
systemctl enable <service>to manage startup behaviour for custom services. - CWP forum reference:
http://forum.centos-webpanel.com