Contents |
1. This only currently works for ensim servers local to the WHMCS install. A script specifically for remote ensim servers is being developed.
2. Access to the Sudo command is required from PHP for this to work.
3. By default Ensim has a command in the /etc/sudoers file "Defaults requiretty" you will need to commend this out by changing it to "#Defaults requiretty" in order to allow Sudo access to PHP
1) Setup the WHMCS Local Server
2) Setup Symbolic Links on your server
3) Setup the Products with Ensim Packages
Now you will need to create symbolic links to the VirtDomain scripts on the local Ensim server. You will need to be logged in as the root account in order to complete this step. For our example, we would use the following commands to create the needed links:
**** REPLACE PASSWORD IN EACH LINE BELOW WITH YOUR SERVER PASSWORD
cd /usr/local/bin ln -s AddVirtDomain AddVirtDomain-PASSWORD ln -s DeleteVirtDomain DeleteVirtDomain-PASSWORD ln -s EnableVirtDomain EnableVirtDomain-PASSWORD ln -s DisableVirtDomain DisableVirtDomain-PASSWORD ln -s EditVirtDomain EditVirtDomain-PASSWORD ln -s AddReseller AddReseller-PASSWORD
Copy the file "ChangeDomainPasswd-PASSWORD" from the zip file here https://www.whmcs.com/members/dl.php?type=d&id=29 to /usr/local/bin .. remember to rename the file with your server password entered above instead of PASSWORD
Edit the file /etc/sudoers. Add the following lines to the end of the file, substituting your link names as needed.
==================================================================
Cmnd_Alias ENSIM = /usr/local/bin/AddVirtDomain-PASSWORD, \ /usr/local/bin/DeleteVirtDomain-PASSWORD, \ /usr/local/bin/EnableVirtDomain-PASSWORD, \ /usr/local/bin/DisableVirtDomain-PASSWORD, \ /usr/local/bin/EditVirtDomain-PASSWORD, \ /usr/local/bin/AddReseller-PASSWORD, \ /usr/local/bin/ChangeDomainPasswd-PASSWORD apache ALL=(ALL) NOPASSWD: ENSIM
==================================================================
Save and close the file.
Enjoy!
Server Modules
cPanel/WHM - DirectAdmin - Plesk - Helm 3 - Helm 4 - Ensim - InterWorx - DotNetPanel
Lxadmin - Virtualmin Pro - XPanel - HyperVM - FluidVM - SolusVM - Cloudmin - WHMSonic
CentovaCast - SCPanel - CastControl - GameCP - TCAdmin - Reseller Central - Auto Release
Registrar Modules
Enom - ResellerClub - Nominet - OpenSRS - ResellOne - OnlineNIC - PlanetDomain
DistributeIT - TPPInternet - RegisterFly - Stargate - Namecheap - NetEarthOne
12Register - Registercom - DotDNS - WebNIC - Dot.TK - HexoNet - Realtime Register
Fraud Modules
MaxMind - VariLogiX FraudCall - Telesign
Selected Gateway Modules
Payflow Pro - Authorize.net - BluePay - Quantum Gateway - eWay - eProcessingNetwork
InternetSecure - LinkPoint - SecPay - ProtX - PSIGate - WorldPay Invisible - NaviGate
Merchant Partners - PayOffline - Offline Credit Card - PayPal - ChronoPay - 2CheckOut - Google CheckOut
WorldPay - E-Gold - Gate2Shop - F2B - PagSeguro - NoChex - AlertPay - ProtX VPS Form - Paymex
CashU - Liberty Reserve - StormPay - Paymate AU and NZ - Payson - BRPay - Boleto - MoneyBookers
PayOffline - Mail In Payment - Bank Transfer - USA ePay - Pay Junction - PayPal Website Payments Pro