User Tools

Site Tools


Advance Usage Guide

If your remote server uses a PHP handler or web server that doesn't support writing of files with nobody ownership. Then there is a workaround with the versatility of our module.

To do this, you simply need to

  1. Create a system account
  2. Create a VHOST that is web accessible and ownership mapped to the system account in Step 1
  3. Place the remote server in the document root in the VHOST directory
  4. Modify CSFSettings.php and reflect the changes. The most important ones are, $fileOwner and $fileGroup. Make sure they match the system account in Step 1
  5. Now create a cronjob as root that runs that CSFUnblockremote.php with the argument of cron

An example cronjob would be

*/1 * * * * php -q /home/newaccount/public_html/CSFUnblockremote.php cron > /dev/null 2>&1

You may need to create a customized php.ini file and place use it with the cronjob so it will bypass your system wide settings incase your server don't allow system() command.

That's it, just set the VHOST URL in the ADMIN module.

cPanel Example

Here is a example if you are using a cPanel remote server.

  1. Create a cPanel account (We use the account name csfremote for this example), with a domain
  2. Upload the remote server files in the public_html of csfremote. So it would be /home/csfremote/public_html/
  3. Open CSFSettings.php and change $fileOwner and $fileGroup to $fileOwner = 'csfremote'; and $fileGroup = 'csfremote';
  4. Create a cronjob as root (MUST BE ROOT)
*/1 * * * * php -q /home/csfremote/public_html/CSFUnblockremote.php cron > /dev/null 2>&1

if you want to load a customized php.ini

*/1 * * * * php -c /home/csfremote/php.ini -q /home/csfremote/public_html/CSFUnblockremote.php cron > /dev/null 2>&1

Central Portal (v4.6)

The Central Portal allow for your customer to see all hosting packages under one simply page without going into the actual Service page to perform a unblock function.

To enable the Central Portal, go into WHMCS → Settings → Addons → CSF Unblocker Admin Module → Configure

Enable the following options. Central Portal and Add Central Portal to Service Menu.

The Central Portal will now be under the WHMCS Services menu in the client area.

If you want to have the Central Portal link at another place, you can use the following URL.

whmcs-csfunblockerv4advanceusage.txt · Last modified: 2019/11/04 18:14 by wiki