cPFence installation is a straightforward process :
Requirements
- Ensure your server is compatible with Enhance server.
- Enhance must be installed already to proceed.
- Root access is required.
How to Install
1. Log in to the Client Area
- Access the client area at https://my.cpfence.app/clientarea.php.
- Retrieve your installation command. This is a one-line, hassle-free install command.
2. Run the Installation Command
- Execute the following command on your server, replacing `License_key_goes_here` with your actual license key:
bash <(curl -ks https://api.cpfence.app/install.sh) -k License_key_goes_here
3. Automatic Installation
- Sit back and relax. The installation process is fully automatic and takes approximately 2 to 3 minutes. No user input is needed during this time.
Your will be presented with this Quick Start help message in your terminal :
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Congratulations! cPFence has been successfully installed and your server is now secured!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
To receive email notifications, please add your email address:
cpfence --set-email [email protected]
To monitor the blocked attacks by cPFence IPDB, use the following command:
sudo tail -f /var/log/syslog | grep -E 'cPFence Blocked:|cPFence DDos Protection:'
To monitor the cPFence Owl™ Module Output, use the following command:
sudo tail -f /opt/cpfence/app/owl/tmp/logs/main_log
For detailed information about running modules and license status, use:
cpfence --status
To view protection statistics and information, use:
cpfence --show-stats
Need assistance or have feedback?
Please visit our support portal: https://my.cpfence.app/knowledgebase
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
4- Add your Email to cPFence
To receive email notifications please add your email to cPFence using the following command :
cpfence --set-email [email protected]
# If you don’t receive emails, enable SMTP instead:
cpfence --enable-cpfence-smtp
Tip: Check out this guide if you want to set up SMTP notifications: How to Use My SMTP for cPFence Notifications
5- Activate those two recommended modules with a single command:
cpfence --wp-autoshield-on
cpfence --owl-automysql-on
6- Start a Smart Scan (Optional)
It is recommended to run a smart scan on critical areas & commonly infected files using the following command :
cpfence --smart-scan
That's it!. You are all set and cPFence is up and running. For more Advanced configurations please check the following link (Configuring cPFence).