Command Line Interface

Several features of the module are available on the command line. They must be executed with the following form:

/etc/wsa/./wsa –-parameter=value

The available commands are:

help

Displays all the commands that can be executed.

/etc/wsa/./wsa --help

check-wsad

Ensures that the WSAD service is functional, if the service is no longer functional for a particular reason, the module will attempt to restart it.

/etc/wsa/./wsa –-check-wsad

check-httpd-conf

Check if a change that has not already been taken into account has been made in the Nginx configuration. If a change has been noticed, the module will recompile the Nginx configuration to make sure all the changes have been applied.

/etc/wsa/./wsa –-check-httpd-conf

disable

Disables the WSA module in the server.

/etc/wsa/./wsa –-disable

enable

Enables the WSA module in the server

/etc/wsa/./wsa –-enable

purgecache-all

Empty Nginx cache files for all sites.

/etc/wsa/./wsa –-purgecache-all

purgecache-user=<user>

Empty all Nginx cache files for a particular user. A valid user name must be specified

/etc/wsa/./wsa –-purgecache-user=testuser

Purgecache-domain=<domain>

Empty all Nginx cache files for a single domain. You need a valid domain name and you must also specify a user.

/etc/wsa/./wsa –-purgecache-domain=exemple.com --user=testuser

rebuild

Update the Nginx configuration. Only users with a different configuration will be updated. Note: The overall configuration is updated each time. Nginx reloads the configuration.

/etc/wsa/./wsa –-rebuild

rebuild-user=<user>

Update the configuration for a single user. A valid user name must be specified. Nginx reloads the configuration.

/etc/wsa/./wsa –-rebuild-user=testuser

rebuild-forced

Update the Nginx configuration. Even if it has not been modified, it will still be recreated. Nginx reloads theconfiguration.

/etc/wsa/./wsa –-rebuild-forced

restart-nginx

Restarts the Nginx service of the server.

/etc/wsa/./wsa –-restart-nginx

reload-nginx

Reload the configuration of Nginx without rebooting.

/etc/wsa/./wsa –-reload-nginx

update

Check if a module update is available. If such an update is available, the module will automatically update.

/etc/wsa/./wsa –-update

update-disk-usage

Checks the disk space used by the different cache directories for display in the WHM interface.

/etc/wsa/./wsa –-update-disk-usage

verbose

Displays the status information of an ongoing task. The verbose parameter is used only when paired with another parameter.

/etc/wsa/./wsa –- rebuild-forced --verbose

user

This parameter should only be used with another parameter that requires a user name.

/etc/wsa/./wsa –-purgecache-domain=exemple.com --user=testuser

version

Displays the current version of the module.

/etc/wsa/./wsa –-version

Sidebar