Page tree
Skip to end of metadata
Go to start of metadata

If your remote server uses a PHP handler or web server that doesn't support writing of files with nobody ownership. Then you can use the following workaround.

To do this, you simply need to

  1. Create a system/hosting account

  2. Have a VHOST that is web accessible and ownership mapped to the system/hosting account in Step 1

  3. Place the remote server in the document root (public_html) for the VHOST

  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

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

If your system wide php.ini have functions disabled, then it is advisable that you make a copy of the php.ini file and place within the system/hosting account's web space to use it with the cronjob. It will allow for bypass your system wide settings to make the module functional.

Now just add the VHOST URL in the ADMIN Interface on your WHMCS to complete the install.

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 remoteserver1.domain.com

  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


  • No labels