Archives

How to setup CWP module for WHMCS

We will show you here how to configure the CWP module for WHMCS. This module is offered for free by CWP.

Notice that WHMCS is not free and you should purchase a license from whmcs.com or from a partner. Licenses from whmcs.com start at $15.95/month.  

Steps on how to install the module:

  1. Download the CWP WHMCS module.
    Login to your CWP installation and go to Billing->WHMCS from the left menu.
    cwp whmcs module 1Follow the link, download the zip archive and extract it. There is only one file in the archive – /cwp7/cwp7.php
  2. Upload the file cwp7.php to WHMCS_directory/modules/servers/cwp7/cwp7.php
  3. Generate an API key to allow WHMCS to connect to your CWP server.
    For this go to CWP->CWP Settings-> API Manager
    cwp whmcs module 2
    Enter a name for the key, the IP of the server where you have WHMCS installed, click the Generate button and select the API permissions as:
    – for accounts: add, upd, dell, susp, unsp
    – for packages: add, upd, del, list
  4. Click the Create button to add the key to the system.
    Take notice of the CWP message: For the correct operation of this tool you must open port 2304 in the firewall
  5. Now go to WHMCS->Setup->Products/Services->+Add New Server.  Enter:
    – Name, Hostname, IP address
    – Primary and Secondary Nameserver with their IPs
    – at Server Details: select server type as Cwp7, enter root username and password and paste the access key.
    cwp whmcs module 3
  6. Click the Save Changes button. You will now be able to create/delete new user accounts in WHMCS.
Share this post:

Add cron jobs in CWP

This KB article is for CentOS Web Panel for shared hosting (end-users).

Cron jobs are commands that will tell the server to run specific PHP files at specific time intervals. There are many web scripts that need cron jobs to run properly.

cwp cron jobs

 

To create cron jobs in CWP:

  1. We assume you are logged on 
  2. Look for CWP Settings->Crontab
  3. Here you have three sections to add a cron job.
    In the first one, choose a common time setting (for example every minute) and the command and click the Save changes button.
    In the second one choose time interval details from drop-down lists. Enter the command and click the Save changes button.
    In the third one, you have full control, and you can customize the time interval as you wish. As in previous two cases, click the Save changes button in the end.

CWP tells you how the command should look like:

# Example of job definition:
# .---------------- minutes (0 - 59)
# |  .------------- Hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7)
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed

The video tutorial for this KB article:

Share this post:

Create/restore backups in CentOS Web Panel

This KB article is for CentOS Web Panel for shared hosting (end-users).

It’s a good practice to download site backups from time to time to your computer. With CWP you can easily accomplish this.

cwp user backups

To download backups to your computer in CWP:

  1. Login to your CWP account
  2. Navigate to File Management->Backup->Download a backup copy  tab
  3. Here you have some options:
    Download a full website backup – this action will create and you will be able to download a full backup for your site. It’s very useful if you want to transfer the site to another server or to restore it in case of an issue.
    Home Directory – download an archive containing your home directory
    All Mysql – download a backup of all your MySQL/MariaDB databases
    All Account Email – backup of all your email accounts.

To restore a backup of your computer in CWP:

  1. Login to your CWP account
  2. Navigate to File Management->Backup->Restore a backup copy  tab
  3. Upload a home directory backup or a MySQL database backup.
At the time of writing this article, the “restore a backup” function seems not to work. We recoomend to restore files via FTP and MySQL databases via phpMyAdmin.

The video tutorial for this KB article:

Share this post:

CWP File System Lock

This KB article is for CentOS Web Panel for shared hosting (end-users).

File System Lock is a very interesting feature that CWP has. It’s a unique feature in the web hosting control panels world.

The CWP gives some details about it:

Info: File System Lock will lock all files and folders from any changes, this will also block all uploads, file modifications and even backup restore. This will secure your website almost 100%, and it’s very useful if you are the only one who modifies website. If you need to modify your website or upload new files then you need to temporary unlock your files.

File System Lock will block ANY file activities in the /public_html/ folder. As the CWP notice says, this will protect your site from malicious scripts that want to modify your files.

cwp file system lock

To enable File System Lock in CentOS Web Panel:

  1. Log in to CWP
  2. Go to File Management->File System Lock
  3. Click the button Files Unlocked, click to Lock.
  4. You will see the button turning green and text being Files Locked, click to Unlock. 
    Also, a message will appear on your dashboard: The file system is locked, this can cause several tasks to not work correctly

The video tutorial for this KB article:

Share this post:

User File Manager – CWP

This KB article is for CentOS Web Panel for shared hosting (end-users).

CWP has a simple utility to allow web hosting end users to edit/view/create/delete files. 

cwp user file manager

 

To the access the CWP File Manager:

  1. Access your CWP account at yourdomain.com:2083
  2. Go to File Management->FTP File Manager
  3. You can edit, rename, create and delete files. You can also modify file permissions. (you can easily use this file manager if, for example, you want to modify a cron job permission from 644 to 755)

The video tutorial for this KB article:

Share this post:
Page 2 of 8
1 2 3 4 8