Giter VIP home page Giter VIP logo

whmcs-freeradius's Introduction

WHMCS Freeradius

Gitter

WHMCS 7.x

The refactor branch contains a work in progress rewrite for WHMCS 7.x

Installing

WHMCS
  • Create a folder called freeradius in WHMCSROOT/modules/servers/
  • Copy freeradius.php and clientarea.tpl into the newly created WHMCSROOT/modules/servers/freeradius folder
  • Copy freeradiusapi.php into the WHMCSROOT/include/api/ folder
FreeRADIUS servers
  • Create a folder anywhere with whatever name you like. For example, on Linux mkdir /opt/whmcs-freeradius

  • Copy cron.php and config.php.example into this folder

  • Rename config.php.example to config.php

  • Edit config.php as per your needs/requirements

  • Create a Cron task for the cron.php file. If your cron.php file is in /opt/whmcs-freeradius then your cron task shold look something like this, if you want it to run every 5 minutes:

    */5 * * * * PATH_TO_PHP/php -q /opt/whmcs-freeradius/cron.php
    
  • On Linux, you can find the PATH_TO_PHP by running which php

whmcs-freeradius's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whmcs-freeradius's Issues

Freeradius + WHMCS for ISP

Hello,

Do you have a pro(paid) version for this plugin?

I need some features, like internet traffic bandwidth by user on customer area.

Upgrade, downgrade of internet plans and more.

FreeRadius Database Query Error

Hi,

Has anyone got the following error:

FreeRadius Database Query Error: Access denied for user 'xxxxxxx'@'localhost' to database 'radius'

xxxxxxx = the WHMCS MySQL username.

I have found a few mentions of the above error, but no solution..

Thanks

Line 34 of cron.php check details fails

On my system, in spite of the correct WHMCS API details, this line fails:

if( ( isset($whmcs_api_url) ) || ( isset($whmcs_api_username) ) || ( isset($whmcs_api_password) ) || ( isset($whmcs_api_key) ) ) {

The solution was simply to omit this line.

One to many } in cron.php

Output from command php -q /var/www/myaccount/modules/servers/freeradius/cron.php ..

PHP Parse error: syntax error, unexpected '}' in /var/www/myaccount/modules/servers/freeradius/cron.php on line 152

Took it out and have a new issue

Install

Is there a more clear installation guide for this please?

Since i have followed the readme file and not sure if i need to add server etc and where to get the required details from?

Can someone point me in the right direction for a full install guide please.

User account details don't appear on WHMCS v6

It seems from the source code that the user should be able to see all their usage stats when signing into their account. But this doesn't seem to be displayed anywhere that I can see in WHMCS v6.

cron refers to non-existent "Expiration" attribute

The CRON uses this Mysql query to see if an account is over limits:

if($usagetotal >= $usagelimit) {        
    $result = mysql_query( "SELECT value FROM radcheck where username = '$user' and attribute = 'Expiration'" );

Expiration is however only set in two place:

  1. function freeradius_SuspendAccount($params){
  2. function freeradius_UnsuspendAccount($params){

It seems essential logic is missing or this attribute must not be checked.

Username doesn't update with e-mail change

The username inserted into the Radius MySQL table doesn't seem to update when the user changes their e-mail address.

On top of that, the account details screen for the user doesn't display what their username in Radius is either. (WHMCS v6)

WHMCS user details issue

Output from command php -q /var/www/myaccount/modules/servers/freeradius/cron.php ..

WHMCS API details missing

WHMCS Options had " instead of '

Still working on it will report again

Function mysqli_connect() is not defined

When execute
php /path/to/cron.php

I get following error

HP Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /opt/whmcs-freeradius/cron.php:38
Stack trace:
#0 {main}
thrown in /opt/whmcs-freeradius/cron.php on line 38

Retry Response: FreeRADIUS Database Query Error:

Is this working ? or outdated
i have latest whmcs version, i typed in servers config the following:

IP: my sql ip
Username: mysql username
Password: mysql pass
Access hash: mysql name

I only uploaded the whmcs files, what else should i do ?

Document basic LAMP installation

Find or Create a Docker image for quick deployments. Remembering the Ion dependancy.

Fork and edit a Wordpress image possibly

No FreeRadius User Groups

Hi! tremendous work on the freeradius plugin, thanks very much - question - does the plugin itself allow for this configuration you mentioned (rate limits, connection limits, IP pool, etc)? on WHMCS 7.2 all I see in module commands is Create Suspend Unsuspend Terminate Change Package "" Password and Update IP Address.

Where do I change that?

Next question - whenever i run cron.php on the radius server, it lists out my clients and says..

Client1: Invalid IP IP address of the localhost radius server (eth0)
Client2: Invalid IP IP address of the localhost radius server(eth0)
Client3: Invalid IP IP address of the localhost radius server(eth0)
Client 4: Invalid IP IP address of the localhost radius server(eth0)

Thanks so much...

cron.php returning userabc: No usage limit set

Hi,

All working fine just having problem the only problem is that when cron is running its showing userabc: No usage limit set in command line.

whereas in whmcs client its showing all details including user limit as quota have a look at snapshot.

snapshot

but when cron job is running its just throw userabc: No usage limit set why freeradiusapi.php is not able to read tblproducts and column configoption2 were it stores the $user_limit in bytes.

must be some issue with freeradiusapi.php please check it once all other working fine.

Packages in WHMCS

Using WHMCS7.

It's not so obvious to me how packages work.

I've installed the module. When I click "Change Package" something appears to happen behind the scenes as I get "Module Command Success Service Upgraded/Downgraded Successfully".

But I haven't defined any packages.

Are packages used to put users into different radius groups (and in freeradius we define the variables that apply to that radius group for example) ?

Guide 100% installed...... now what ?

Hi guys,
first of all thanks for producing this guide.

I do have a working freeradius+mysql server and some openvpn servers allowed by freeradius.
I tested them and they work with that freeradius authentication.

I have done your whmcs-freeradius guide 100% correct, so what should I do now ?

When I list a "new server" in whmcs I do not see any module, I can just select from a list the "Type" of server. There is "Freeradius" there, but there was already before I think.

And in whmcs module add-on section there is no freeradius (that's okay I think because I have not bought their official 150$ one).

So how do I see that the guide works and what steps should I do in order to load my servers on whmcs ? I can manage linux commands very well but I am a kind of newbie when it comes to whmcs.

Thanks

migrate to php pdo

"The mysql extension driven database connection is now deprecated and may be discontinued in a later version of the product. WHMCS encourages all third party developers to use the Capsule DBAL and PDO connection for all new database interaction. "

FreeRADIUS Database Query Error

When trying to accept a client from WHMCS (7.3) throw this error: "FreeRADIUS Database Query Error" without nothing more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.