nginxctl
The nginxctl command line tool complete reference.
This is a new command-line tool for managing your cpnginx server. It is a unique tool developed by cpnginx developers. You can do almost all operations of your nginx server from the command line.
Command:
nginxctl
Options:
Copyright (C) 2009-2025, Syslint Technologies India(P) LTD.
Visit : https://cpnginx.com
Usage: nginxctl [options] <command> [parameters]
nginxctl build [options]
vhosts - To build all nginx vhosts
sslcerts - To build all nginx ssl certificates
remoteip - To install the Apache mod_remoteip module and settings
nginxctl nginxbuild [option1=value1] [option2] ..
--version=Version - Choose your nginx version
--enable-pagespeed - To build the page speed module with nginx
--enable-modsec - To build mod_security
nginxctl mosecurityrules <option> <value>
install < vendor > - Install a modsecurity rule from the vendor
( eg, install OWASP)
remove < vendor > - Remove installed modsecurity vendor rules
nginxctl setupphpfpm
nginxctl rebuildvhost <domain name>
nginxctl rmvhost <domain name>
nginxctl rebuilduservhost <cpanel user name>
nginxctl rmuservhost <cpanel user name>
nginxctl templaterebuild
nginxctl restart
nginxctl help
nginxctl enable
nginxctl disable
nginxctl status
nginxctl cleanfpm
nginxctl version
The Google-pagespeed module is depreciated and not longer supported by cpnginx.