Install freeradius's web management site ARA in ubuntu

Source: Internet
Author: User
Tags pear freeradius

Php and other environment installation will not talk about, must have, LAMP and LNMP can,

First install git, pear,

sudo apt-get install git-core php-pear

Then update the pear list and install the HTML_Template_Sigma framework.

pear channel-update pear.php.net
pear install HTML_Template_Sigma

Then obtain the Installation File of ARA.

git clone git://git.asn.pl/asn/ara

Then, map the src file in the ARA directory to the home directory set by the http server, that is, the region from which the open IP is loaded by default, usually/var/www.

ln -s ~/ara/src/htdocs/ /var/www/ara

Assume that you downloaded ara to the user directory.

This completes the installation,

 

========================================================== ====================

Configure ARA

cd ~ara/src/config
cp config.php.dist config.php
vim config.php

Configure these three lines to the actual database username and password and database name.

$config["sql_username"]    = "radius";
$config["sql_passwd"] = "radius";
$config["sql_db"] = "radius";

Enable the additional user information function,

$ Config ["SQL _user_extension"] = TRUE; // change False to TRUE.

In order to enable this function, there is still database work to be done here. If this is the case, configure config. php first and then talk about it.

 

Because all administrators are administrators, the maximum permissions are granted to users.

$config["access_level"] = ARA_ACCESS_ALL;

Because ARA is logged on anonymously by default, we will set it to use the user password to log on.

$ Config ["use_auth"] = TRUE; # enable PHP_AUTH_USER Authentication
$ Config ["force_user_file"] = TRUE; # user File verification (users/$ user. php)
$ Config ["allow_user_file_without_pass"] = FALSE; # The password cannot be blank.

The user password is set in the users directory under the config directory. Now the configuration of config. php is complete.

 

========================================================== ====================

Next, configure the user file, for example, create a user whose Administrator account is admin and whose password is 123456.

cd ~/ara/src/config/users
cp example.php.dist admin.php
vim admin.php

Here, admin under the users directory. php is equivalent to setting the user name. If you want to set another user name, you only need to change this php to the corresponding name, and then enter admin. PHP File Password modification and other related information

$ Ara_user ["pass"] = "123456"; # Remove the comment and set the password to 123456.
$ Config ["access_level"] = ARA_ACCESS_ALL; # Remove the comment and set the permission to the maximum value.
$ Config ["default_access"] = TRUE; # Remove comments and use them by default.

 

========================================================== ====================

Now config. php and admin. php have been configured, and we have not completed the previous work to enable the user information additional function, add content for the database.

Enter mysql to import related data,

Mysql-uUSERNAME-pPASSWORD; # connect to the database
Use radius; # use the radius Database
Source ~ Ara/src/lib/SQL-user-ext/da. SQL; # import table structure
Grant all on radius. userinfo to radius @ localhost; # Add the permission to operate the userinfo table

 

 

Now you can access ARA. Open http //: ADDRESSIP/ara/index. php in the browser.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.