User Tools

Site Tools


whmcs-csf_unblocker_v4_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
whmcs-csf_unblocker_v4_installation [2019/09/24 19:27]
wiki [WHMCS Configuration]
whmcs-csf_unblocker_v4_installation [2020/05/28 02:38] (current)
wiki
Line 14: Line 14:
  
 ====== Requirements ====== ====== Requirements ======
-Make sure the remote servers have ioncube ​9/10 loader enabled. If you are running ioncube loader earlier than ioncube ​9/10 then you can either run easyapache to rebuild the ioncube extension automatically or manually update the ioncube loader files.+Make sure the remote servers have ioncube 10 loader enabled. If you are running ioncube loader earlier than ioncube 10 then you can either run easyapache to rebuild the ioncube extension automatically or manually update the ioncube loader files. 
 ====== Installation Instructions ====== ====== Installation Instructions ======
  
Line 52: Line 53:
 |Add Central Portal to Service Menu|Show the Central Portal under the Service menu| |Add Central Portal to Service Menu|Show the Central Portal under the Service menu|
 | Max Unblock Attempt| Maximum unblock a client can have per hour  | | Max Unblock Attempt| Maximum unblock a client can have per hour  |
-|Always Test Connection |Enabling this will always run connection test during reload, otherwise only during first load for the session|+|Always Test Connection |Enabling this will always run server ​connection test (Admin) ​during reload, otherwise only during first load for the session|
 |Techoptions*|Enable/​Disable tech module functions| |Techoptions*|Enable/​Disable tech module functions|
 |Disable Do Not Delete option for Tech|When enabled, the Do Not Delete option will be disabled for Tech Module| |Disable Do Not Delete option for Tech|When enabled, the Do Not Delete option will be disabled for Tech Module|
Line 79: Line 80:
 | Mass Hash Update| This will update all the hash recorded on WHMCS, note it will NOT update the $hash in the remote CSFSettings.php file| | Mass Hash Update| This will update all the hash recorded on WHMCS, note it will NOT update the $hash in the remote CSFSettings.php file|
  
 +===== Show on Module =====
  
 +In order for the Unblocker module to show up in the WHMCS client area, you must enable it for at least one WHMCS Provisioning Module. To do this, goto the CSF Unblocker Admin -> Show on Module ​
 +
 +Once there, you can set which **WHMCS provisioning module** will have access to the CSF Unblocker
 +
 +For example, if your shared hosting plans run on DirectAdmin then enable it for DirectAdmin.
 +
 +{{::​showonmodule.png?​200|}}
  
 ===== Language Files ===== ===== Language Files =====
Line 95: Line 104:
 The client end module will be shown on the Service page of the particular service. Make sure you have enabled the server provisioning module in the Admin module (Addons -> WHMCS CSF Unblocker -> Enable for Modules) to have it showing in the front end. The client end module will be shown on the Service page of the particular service. Make sure you have enabled the server provisioning module in the Admin module (Addons -> WHMCS CSF Unblocker -> Enable for Modules) to have it showing in the front end.
  
-===== Remote Server Install ​(Non-WHMCS server) ===== +===== Firewall Portal ​(v4.6) =====
- +
-Run the following one step installer, it will install the files onto the remote server for you and install the cronjob. +
- +
-**For Ioncube 9**  +
-<​code>​cd /tmp; wget -N http://​files.baseservers.com/​codebox/​whmcs-csfunblocker/​installer.tar;​ tar -xvf installer.tar ; chmod +x installer.php;​ </​code>​ +
- +
-**For Ioncube 10** +
-<​code>​cd /tmp; wget -N http://​files.baseservers.com/​codebox/​whmcs-csfunblocker/​installer-ioncube10.tar;​ tar -xvf installer-ioncube10.tar ; chmod +x installer.php;​ </​code>​ +
- +
-**To start the installation** +
-<​code>​php installer.php arg1 arg2 arg3</​code>​ +
- +
-Where  +
- +
-^ Argument 1 Options ^ Explanation^ +
-| install | install the ioncube 9 version | +
-| install-ioncube10 | install the ioncube 10 version | +
- +
-^ Argument 2 Options ^ Explanation^ +
-| cpanel| install the files into /​var/​www/​html | +
-| cpanel-ea3 | install the files into /​usr/​local/​apache/​htdocs | +
-| da | install the files into /​var/​www/​html | +
- +
-^ Argument 3 Options ^ Explanation^ +
-| default | leave the default hash in the settings file alone | +
-| random| Generate a random Hash to replace the default hash in the settings file | +
-| Any string | Replace the default hash with the string provided. Avoid using quotes, it will be stripped out. | +
- +
-**Example installer command**  +
-<​code>​cd /tmp; wget -N http://​files.baseservers.com/​codebox/​whmcs-csfunblocker/​installer-ioncube10.tar;​ tar -xvf installer-ioncube10.tar ; chmod +x installer.php;​ php installer.php install-ioncube10 cpanel default</​code>​ +
-===== Manual Install ===== +
- +
-If you want to install it manually, you can upload the files in remoteUpload to the documentroot of your remote server that can be web accessible using the **Web Address** listed in the Admin Module. +
- +
- +
-If the web address is **abc.domain.com** +
- +
-Then **http://​abc.domain.com/​CSFUnblockremote.php MUST** be accessible publicly +
- +
- +
-By default cpanel will be stored in  +
- +
-<​code>/​var/​www/​html/</​code>​ +
- +
-directadmin will be in  +
- +
-<​code>/​var/​www/​html</​code>​ +
- +
-Once the file is uploaded, you would need to setup a cronjob to run CSFUnblockremote.php +
- +
-Here is a sample cronjob +
- +
-cPanel +
- +
-<​code>​*/​2 * * * * php -c /​var/​www/​php.ini -q /​var/​www/​html/​CSFUnblockremote.php cron > /dev/null 2>&​1</​code>​ +
- +
-DirectAdmin +
- +
-<​code>​*/​2 * * * * php -c /​var/​www/​php.ini -q /​var/​www/​html/​CSFUnblockremote.php cron > /dev/null 2>&​1</​code>​ +
- +
-We are using a local php.ini file so that we don't have to make changes to the system wide php.ini file. If your system wide php.ini have the following functions disabled. It is adviseable to make a copy of the system wide php.ini and make the cronjob to load the local php.ini +
- +
-system() +
- +
-posix_getpwuid()+
  
-fileowner()+This can be activated by enabled **Central Portal, Add Central Portal to Service Menu** options in the WHMCS -> Addons Configuration menu. If your theme is six compatible, then a link will automatically added to the Service menu. 
  
-filegroup()+You can also add a link manually to the following URL. 
  
-fileperms()+<​code>​index.php?​m=csfunblock&​action=portal</​code>​
  
-===== Connection Test ===== 
  
-You can run the connection test by going to the Admin Module and click on the first column'​s icon in the Server ​Listing. ​+===== Remote ​Server ​Connection Test =====
  
-===== Tips =====+You can run the connection test by going to the Admin Module and click on the **first column**'​s icon in the Server Listing. {{:​connectiontest.png?​200|}}
  
-If you are getting an error regarding ioncube then you must update ​to the latest ioncube loader for your PHP to version 9 or 10. Depending the package you downloaded+Your WHMCS end should now be setup, proceed ​to the remote server installs[[whmcs-csfunblockerv4remoteinstall|Remote Server Install (Non-WHMCS server)]]
  
  
whmcs-csf_unblocker_v4_installation.1569349660.txt.gz · Last modified: 2019/09/24 19:27 by wiki