How to install Radius Manager 4 in CentOS 7 [with Video]

A little Introduction…

Again I’m am writing about radius manager after a long time. But this time something more updated that is installation of Radius Manager in CentOS 7 which is currently the latest Cent OS version available. Here I will do the installation in a 64 bit version of CentOS 7 downloaded recently from CentOS Official website.

As we all know Radius Manager is a product of DMA Softlabs. Their support team told me that CentOS 7 is not compatible and told me to install 32 bit version of CentOS 6. But I thought of installing the latest OS ofr more updated and secured feature sets.

Initially I faced a lot of problem while trying to install Radius Manager 4 in CentOS 7. But eventually after lot of research and discussions with Mr. Syed Jahanzaib helped me to come up with a solution and install Radius Manager 4 in CentOS 7 perfectly.

However, If you want to install it in Ubuntu Server follow this.

Initial Prerequisites:

  • CentOS 7 (64 bit preferred)  – Downloadable from CentOS Official website – CentOS-7.0-1406-x86_64-DVD.iso
  • Radius Manager 4.1.6 – Downloadable from customer portal of DMA Softlab.
  • Radius Manager License Files – lic.txt and mod.txt – Downloadable from customer portal of DMA Softlab after purchase or trial.

Note: If you need to change MAC for CentOS 7 please refer to my tutorial here.

Update: Some users are facing yum repo issues after installing epel. To solve that:

1. nano /etc/yum.repos.d/epel.repo

2. Replace https with http.

3. Save and exit.

4. yum repolist. Verify installation is successful.

4. Issue yum update

 Steps to install Radius Manager 4 in CentOS 7

  1. After you clean install CentOS 7 with proper NIC MAC Address configured, install nano for editing the configuration files.
    yum install update
    yum install nano
  2. Disable SELinux by editing the following and changing SELINUX=disabled

    nano /etc/sysconfig/selinux
    
  3. Stop and disable CentOS 7 firewall. If you want to use firewall then you need proper configuration for allowing radius requests and reply messages.
    systemctl status firewalld
    systemctl stop firewalld
    systemctl disable firewalld
  4. Install EPEL Repo.
    rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  5. Install all other dependencies.
    yum install mc wget crontabs make gcc libtool-ltdl curl mysql-devel net-snmp net-snmp-utils php php-mysql php-gd php-snmp php-process ntp sendmail sendmail-cf alpine mutt mariadb-server mariadb php-mcrypt cronie wget phpmyadmin net-tools psmisc
  6. Install libraries.
    yum install glibc.i686 libgcc_s.so.1
  7. Start and configure MariaDB (replacement from MySQL) services.
    systemctl start mariadb.service
     systemctl enable mariadb.service
     mysql_secure_installation
  8. Start httpd.
    systemctl start httpd.service
     systemctl enable httpd.service
  9. Allow phpmyadmin access.
    nano /etc/httpd/conf.d/phpMyAdmin.conf

    Comment out the <Directory “/usr/share/phpmyadmin”> stanza using ‘#’
    Then add:
    <Directory /usr/share/phpMyAdmin/>
    Options none
    AllowOverride Limit
    Require all granted
    </Directory>
    Save and exit

  10. Change authentication of phpmyadmin.
    nano /etc/phpMyAdmin/config.inc.php

    change the authentication in phpMyAdmin from cookie to http – $cfg[‘Servers’][$i][‘auth_type’]     = ‘http’;

  11. Check php version.
    php -v
  12. Download ioncube loaders.
    wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
  13. Extract the ioncube package.
    tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
  14. Move in to the ioncube directory and copy the loader based on your php version to the required php modules folder and assign a permission of 777 to the ioncube file.
    cd ioncube
    mv ioncube_loader_lin_5.4.so  /usr/lib64/php/modules/
    chmod 777 /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
  15. Find the location of your php.ini file.
    php -i | grep "Loaded Configuration File"
  16. Edit and add ioncube loader location in the PHP configuration file.
    nano /etc/php.ini
     Add after [PHP]:
     zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
  17. Restart httpd service.
    service httpd restart
  18. Check and verify ioncube installation.
    php -v
  19. Download & install Free Radius.
    wget http://www.dmasoftlab.com/cont/download/freeradius-server-2.2.0-dma-patch-2.tar.gz
    tar -xvzf freeradius-server-2.2.0-dma-patch-2.tar.gz
    cd freeradius-server-2.2.0
    ./configure
    make 
    make install
  20. Verify freeradius installation by issuing:
    radiusd -X

    It may fail first time. Issue again, then you will get a message Ready to process.

  21. In case you need to kill the above process find the process id and then issue kill command specifying the process id.
    ps ax | grep radius --> Note the pid
    kill [pid]
  22. Move into MariaDB and create the required DB, users etc.
    mysql -u root -pCREATE DATABASE radius;
    CREATE DATABASE conntrack;
    CREATE USER 'radius'@'localhost' IDENTIFIED BY 'radius123';
    CREATE USER 'conntrack'@'localhost' IDENTIFIED BY 'conn123';
    GRANT ALL ON radius.* TO radius@localhost;
    GRANT ALL ON conntrack.* TO conntrack@localhost;
  23. Download and install radius manager 4.1.6 & proceed to install license files. Change the file locations.
    wget https://dl.dropboxusercontent.com/u/xxxxx/radiusmanager-4.1.6.tar
    tar -xvf radiusmanager-4.1.6.tar
    cd radiusmanager-4.1.6
    chmod 755 install.sh
    ./install.sh
    cd /var/www/html/radiusmanager
    wget https://dl.dropboxusercontent.com/u/xxxxx/mod.txt
    wget https://dl.dropboxusercontent.com/u/xxxxx/lic.txt
  24. Open your browser and go to: http://192.168.0.220/radiusmanager/admin.php
  25. Voila!! Installation is successful and you can now login.
  26. In case you get blank page, here are the possibilities:
    (a) Php memory limit.
    (b) Invalid license files.
    (c) Permission error for ioncube loaders.
    (d) Incompatible ioncube loaders.
  27. Apache error log is located @ /etc/httpd/logs/error_log
    Apache access log is located @ /etc/httpd/logs/access_log
    Check those files for probable errors.

 

 

Video tutorial for installing Radius Manager 4 in CentOS 7

Cheers & enjoy configuring radius manager!

Enjoyed this post? Share it!

 
  • Telysat

    Hello, i´ve got a problema after this tutorial.
    When reset machine the radius manager say at home screen radius not working.
    i run radiusd by console and all ok, radius server ok
    ?????

    • Amit Upadhyay

      Hi,
      same issue i am facing with it, i can not restart the radiusd from radius manager portal & radiusd can start from command only “systemctl restart radiusd”.

      Please suggest what permission i had missed with installation.

  • Dicky Prastianto Pramudya

    Hii,, i have problem , when i looking in the error log i found this

    “PHP Fatal error: The encoded file /var/www/html/radiusmanager/admin.php requires a license file.The license file /var/www/html/radiusmanager/lic.txt is not valid for this server.”

    how to fix it? and how to get the license file?

    • Check your license files.. Error in license file.. Reupload it to server

      • Dicky Prastianto Pramudya

        i already re-downloaded this license file and put it at /var/www/html/radiusmanager/ but still error. are the license file is true valid?

        • Ahmed Elemam

          please send me the lic & mod files

          ahmedvirus@gmail.com

          • You need to purchase.

          • Krishna Sai Tatavarthi

            I am getting error like this
            [Tue Apr 26 10:04:16.129706 2016] [core:notice] [pid 14517] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
            [Tue Apr 26 10:04:16.143188 2016] [suexec:notice] [pid 14517] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
            AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this mes$
            [Tue Apr 26 10:04:16.172200 2016] [auth_digest:notice] [pid 14517] AH01757: generating secret for digest authentication …
            [Tue Apr 26 10:04:16.172841 2016] [lbmethod_heartbeat:notice] [pid 14517] AH02282: No slotmem from mod_heartmonitor
            [Tue Apr 26 10:04:16.584886 2016] [mpm_prefork:notice] [pid 14517] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 confi$
            [Tue Apr 26 10:04:16.584912 2016] [core:notice] [pid 14517] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
            [Tue Apr 26 10:09:36.186614 2016] [mpm_prefork:notice] [pid 14517] AH00170: caught SIGWINCH, shutting down gracefully
            [Tue Apr 26 10:09:37.299790 2016] [core:notice] [pid 31460] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
            [Tue Apr 26 10:09:37.300360 2016] [suexec:notice] [pid 31460] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
            AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this mes$
            [Tue Apr 26 10:09:37.319735 2016] [auth_digest:notice] [pid 31460] AH01757: generating secret for digest authentication …
            [Tue Apr 26 10:09:37.320323 2016] [lbmethod_heartbeat:notice] [pid 31460] AH02282: No slotmem from mod_heartmonitor
            Failed loading /usr/lib64/php/modules/ioncube_loader_lin_5.4.so: /usr/lib64/php/modules/ioncube_loader_lin_5.4.so: cannot open shared object file: Permission denied
            [Tue Apr 26 10:09:37.349608 2016] [mpm_prefork:notice] [pid 31460] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_wsgi/3.4 Python/2.7.5 confi$
            [Tue Apr 26 10:09:37.349640 2016] [core:notice] [pid 31460] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’
            [Tue Apr 26 10:22:58.724749 2016] [autoindex:error] [pid 31465] [client 10.10.8.2:53620] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,$
            [Tue Apr 26 10:54:02.913616 2016] [autoindex:error] [pid 6311] [client 10.10.8.2:55182] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,i$

  • ahmed

    can you please repair the links as it’s not working
    thanks

    • Which links are you talking about? Those dropbox links will not work as those must be changed according to the location of your purchased license files.

  • TP Osy Tours
    • PEDDAREDDY

      change in httpd.conf file document root

  • TP Osy Tours

    and i have problem
    i dont can acess to System settings, Unkown column `pm_netcash~ in~ field list`

  • Panda Lola

    hi i’m install ready but when i’m access to web: http://172.69.7.7/radiusmanager/admin.pht , it’s bank page , how i do? sinamao@gmail.com

    • Increase your php mem limit. Check your license files.

      • Panda Lola

        could u guide me about increase ?

      • Panda Lola

        i need buy license file? or free

  • Syed Jahanzaib

    Great 🙂 It’s good to have it on latest version of centos, as most of Cloud hosting now support only newer version, and you cannot get ubuntu 12.x 32bit or centos 6.x 32bit.
    Keep up the good work!

    • Thanks a lot Sir. U r my inspiration… Yes, installation in latest version is recommended but unfortunately DMA Support Team doesn’t allow us to install in CentOS 7 and even they completely deny giving support to any system which has any other version of CentOS other than 6.x. That’s sad!

  • Syed Jahanzaib

    major reason y DMA is stucked dueto its old styling coding in php which is supported in older versions only. thats sad that they stopped development in new methods. + dma is just a one man show only so we shouldn’t expect much development from mr. V.

    • Ohh I see… I heard from him that may be “RM 4.2 will support CentOS 7” but it’s release date is UNKNOWN! May he continue the development as we all love to use RM. 🙂

      • Syed Jahanzaib

        any new feature he told or revealed in 4.2? and any release date for it?

  • kareem algmati

    yum install mc wget crontabs vixie-cron make gcc libtool-ltdl curl mysql-server mysql-devel net-snmp net-snmp-utils php php-mysql php-mcrypt php-gd php-snmp php-process ntp sendmail sendmail-cf alpine mutt

    Loaded plugins: fastestmirror, refresh-packagekit, security

    Setting up Install Process

    Loading mirror speeds from cached hostfile

    epel/metalink | 36 kB 00:00

    Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=i386 error was

    No repomd file

    Error: File /var/cache/yum/i386/6/epel/metalink.xml does not exist

  • Pawan Kr Sharma

    please mail me the full script of Radius manager centos intsllation
    pawanlata@gmail.com

  • Pawan Kr Sharma

    wget https://dl.dropboxusercontent.com/u/xxxxx/radiusmanager-4.1.6.tar
    tar -xvf radiusmanager-4.1.6.tar
    cd radiusmanager-4.1.6
    chmod 755 install.sh
    ./install.sh
    cd /var/www/html/radiusmanager

    this link is not working
    i failed here

    • That link is not supposed to work. That is just for demo purpose.. Replace that with ur own link.

      • Pawan Kr Sharma

        thanks
        but i am new in lenux os so plzhelp me how to i creat my loacl pc link in centos7

        • You create a free dropbox account -> upload file there -> right click – get public link -> paste that link

          • Pawan Kr Sharma

            thanks

            but what about chmod 755 install.sh

            it will work on my downloads link

          • All other thinks remains same.. Just create your own link.

          • Pawan Kr Sharma

            ok thanks
            r u from kolkata
            me to
            #9831033021

          • Pawan Kr Sharma

            i need help on p2pserver
            i amsmall cableoprater in south kolkata
            i want to install p2pserver on my end can u help me

          • For P2P server there is no open source solution known to me. But you can definitely talk with Extreme Peering, xtraband etc who are among the top p2p solution provider in India..
            Yes I am from Kolkata, you are from which part of South Kolkata?

          • Lake Gardens
            thanks for your suggestion ,I know about these but i am searching cheap solution and extreme peering is very expensive

  • Navneet Kumar

    Can somebody gimme radiusmanager compressed files so that I can upload it to my dropbox and proceed further 🙁
    I went to DMA website .. dont see anything for trial usage .. they claim to give 30 days usage .. how to get that ?

    • Dear Mr. Navneet,

      The compressed files are available in the DMA Customer Portal and you can download it easily from there and register your MAC to generate lic and mod files.
      To request for trial you need to send an email to DMA from an official E-Mail ID not gmail or yahoo and they will provide you with an account.

      Thanks..

  • Shankar Anand

    Incorrect integer value: ” for column ‘unixacc’ at row 1

    i install radius server…. i got the login

    when i add user i got following error.,

    #Incorrect integer value: ” for column ‘unixacc’ at row 1#

    • Shankar Anand

      Dear team i am waiting Your Reply

  • শান্তনু তালুকদার

    error Unknown database ‘radius’. any suggestion??

  • Sanjeev

    brother issue in error_ log file due to licence key…………….. how can i resolve it………………..

    shows like this
    _______________________________________________
    [:error] [pid 4460] [client 192.168.1.77:44653] PHP Fatal error: The encoded file /var/www/html/radiusmanager/admin.php requires a license file.The license file /var/www/html/radiusmanager/lic.txt is not valid for this server. in Unknown on line 0, referer: http://192.168.1.77/radiusmanager/

    _____________________________________________

    such that i ve ripped your licence no….. from youtube video….. there was not no lic no in wget_____________xxxxx only………………..

    __________________________________________so whats the problem to fix this for demo propose only?

    • Sanjeev Ji, the license I used in the video was a 30 days demo license.. So even if u ripped it it won’t work now. Moreover license is binded with your MAC Address..

      Getting a demo license is simple.. Email DMA from official mail ID and send them your MAC. They will generate a license for you

  • Aleksandar

    very nice and helpful gude.. 🙂 can you please help me with some error i have…. NAS is conneted but when user try to connect in radius debug i get [sqlippool] No Pool-Name defined. [sqlippool] expand: No Pool-Name defined (did %{Called-Station-Id} cli %{C alling-Station-Id} port %{NAS-Port} user %{User-Name}) -> No Pool-Name defined

    can you please help me with that? thanks

  • Alagiri Samy

    hi srijit,
    First of all thanks for your nice tutorial . i learnd from you lot. i am in the need of automated installation script for radius manager in centos 6.5 (64) bit edition. since i searched all around internet i got it only for ubuntu.. so kindly help me in these. looking eagerly for your reply.

  • Priyesh Chauhan

    Hi Srijit.Thank you for the guide. I have following error… “Misconfiguration of certificate’s CN and virtual name. The certificate CN has localhost4.localdomain4. We expected localhost.localdomain as virtual name.”..

    Please help me in solving this error.

  • Saar Sorathiya

    it’s working fine, Thanks for sharing dma configuration in centos 7..

    Thanks

  • Mnos Min Del Loar

    i follow your video but the end of video i can’t do this command why #mv /usr/local/ioncube_lin_5.4.so /usr/lib64/php/modules/
    please help me

  • Srijan Bhuju

    Hi got error of “No IP Pool Defined”, Even I’ve selected the NAS POOL or DHCP for the user what might be cause behind. with radtest its accept the user and same issue in log.

    Fri Dec 30 16:00:23 2016 : Info: No Pool-Name defined (did cli port 1812 user test)

  • moh abid

    thanks sir , i have created successfully DMA but when i configure on mikrotik router
    as radius server and create user id password on dma trying to dial pppoe user
    radius not authenticated my password mikrotik router log shown “wait for call
    radius time out ” any suggestion

  • Ijaz Linux

    hi nice one , here is my one question after 1 month now my rm user list not showing colors definations whats is the issue please help thanks

  • Ra Hul

    I installed successfully radius manager but username or service name or name , or anything ascending to descending not work can you please tell me what’s problem there !

    I’m trying to many times install new & 4.0 old version of radius manager in CentOS 7 & 6.9 of 64bit but facing same problem. Please help !

  • Ra Hul

    I installed successfully radius manager but username or service name or name , or anything ascending to descending not work can you please tell me what’s problem there !

    I’m trying to many times install new & 4.0 old version of radius manager in CentOS 7 & 6.9 of 64bit but facing same problem. Please help !