How Can We Help?
< All Topics
Print

Installation

Installing cPGuard

The following guide will show you how to install cPGuard on supported 64 bit operating systems. Make sure your server meets the requirements to run cPGuard.

Before begining you need to have a valid license key ready. Additionally, for standalone servers, you may need to provide information mentioned here during the installation

You can begin installation by runing the single line command below. Make sure to replace  LICENCE-KEY in the command with your license key

cd /usr/local/src && rm -f cpguard_install.sh && curl -o cpguard_install.sh -L https://downloads.opsshield.com/cpguard/cpguard_install.sh && bash cpguard_install.sh LICENCE-KEY

After installation of the dependency packages, cPGuard backend and agent services, you may be asked for addtional infomation like information on the webserver etc depending on the server environment.

You can monitor the installer log appearing on the screen as cPGuard is being installed. A success message is displayed when the installation finishes. In case you encounter any issues during installation, please feel free to contact us and we will assist you to complete the installation without any additional charges

Upon successful completion of the installation, you can visit the App Portal to view your server dashboard and do the initial configuration (add link) based on your preferences.

Standalone servers

By standalone server, we mean any server with or without a control panel other than cPanel, Directadmin or Plesk.

The same one-line command used above can be used for instaling cPGuard on all servers. But, since the environements can vastly differ from one to another, you will be asked to provide additional infomation manually during the installation. You can read more about the configuration wizard in the Standalone installation procedure  document. 

Unattended install and configuration

If you have to install and configure cPGuard on multiple servers, then doing so from the command line, without requiring manual user inputs during installation can proove to be much easier. This can help you to easily Install cPGuard with an identical configuration across several servers with identical enviroments

cPanel, DirectAdmin and Plesk

Unattended Installation on cPanel, DirectAdmin and Plesk is pretty straigforward. You can begin installation with the command above and the correct license key. No manual user interaction is required during the instalation procedure.

Standalone pre build INI

For standalone servers, you can first prepare an INI file with the required configuration values as mentioned in this kb article. The path to this ini file can be provided as a second optional parameter to the install command as  

cd /usr/local/src && rm -f cpguard_install.sh && curl -o cpguard_install.sh -L https://downloads.opsshield.com/cpguard/cpguard_install.sh && bash cpguard_install.sh LICENCE-KEY

Note that the installer will attempt to validate some of the provided values. If validation fails for required values, the installation will pause and ask for user input

Applying initial settings

The command line utility of cPGuard has options to export and import the settings from servers. A file containing the settings values can be created by yourself or exported from an existing server and imported on to a new server.

You may also update various options individually using the various command line options available. Refer the command line help catergory for more information

 

Was this article helpful?
4.4 out of 5 stars

5 ratings

5 Stars 60%
4 Stars 20%
3 Stars 0%
2 Stars 20%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents