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) that runs
*/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
whmcs-csfunblockerv4advanceusage.txt · Last modified: 2018/07/16 19:19 by wiki