WHMCS server – CentOS 6.5
WHMCS version – [url removed, login to view]
Compiling software (Win/OSX)
You must have your own test WHMCS server to test the module changes.
We need some customization of our SafeSrv freeradius module for WHMCS ([url removed, login to view] ). We have the source code for the module. Currently the module integrates with of Viscosity VPN provider program ([url removed, login to view] ) to download licences for our VPN clients when ordered.
Below is the current process of the FreeRadius module -
1 – User orders VPN product
2 – Module creates user on our Radius servers
3 - Requests licence from sparklabs and downloads licence.
4 – Creates two ZIP files of VPN client Windows (.exe)/OSX (.dmg) with the licence attached in the zip.
5 – Attaches the two ZIP files in the Clients area in WHMCS for them to download.
These are the changes we need making to the process:-
1 – Instead of Zipping the files with the licence we want to compile the software to include the licence in the install. We already have a process of doing this easily. But we need to add the functionality to the module so it complies the Windows and OSX packages when the user orders the product.
This is how we manually create the files:-
1. Open the Terminal application (located at /Applications/Utilities/[url removed, login to view]).
2. Type the following command in the Terminal window and press Return/Enter:
3. To hide the VPP folder enter the following command and press Return/Enter:
chflags hidden "Viscosity Bundle/VPP"
1. Enter the following command into the Terminal to create the DMG file. You can replace the "Viscosity Bundle" text with the desired name for your package.
hdiutil create -volname "Viscosity Bundle" -srcfolder "Viscosity Bundle" -ov -format UDZO "Viscosity [url removed, login to view]"
. A "Viscosity [url removed, login to view]" file should now be on your desktop that can be distributed to end-users.
Compiling your Bundle from Command Line in Windows
Alternatively, your Bundle can be compiled into an Installer from command line. After you have finished setting up your [url removed, login to view] file and building your Bundle, simply run the following command from a Windows Command Line Interface:
"C:\Program Files (x86)\Inno Setup 5\[url removed, login to view]" /O"<Folder to place the build installer>" /F"<Name of the built installer>" "<path to [url removed, login to view]>"
"C:\Program Files (x86)\Inno Setup 5\[url removed, login to view]" /O"C:\Bundle\Output" /F"Viscosity [url removed, login to view]" "C:\Bundle\[url removed, login to view]"
We can use wine and inno setup on the centos server for this.