CentOS installation of Radiusmanager

Source: Internet
Author: User
Tags ioncube freeradius
This tutorial uses centos5.5 as an example. it is best to use the ssh tool when performing the following operations. I. install and upgrade some components: (Note: If the carriage return symbol is used, it is a command.) reference yumupdaterpm? Import/etc/pki/rpm-gpg/RPM-GPG-KEY * yuminstallhttpdmod_sslphpphp-commonphp-gdphp-

Basis of this tutorialCentos5.5 for example, it is best to use the ssh tool for the following operations.
 

I. install and upgrade some components: (Note: If the carriage return symbol is used, it is a command)
Reference

Yum update
Rpm? Import/etc/pki/rpm-gpg/RPM-GPG-KEY *
Yum install httpd mod_ssl php-common php-gd php-pearphp-pecl-memcache php-mhash php-xmlMysql-Server gcc-c ++
Yum install mysql-devel curl php-mysql php-mcryptcompat-libstdc ++-33 libtool-ltdl-devel
Wgethttp: // ncu.dl.sourceforge.net/project/webadmin/webmin/1.520/webmin-1.520-1.noarch.rpm&rpm-ivh webmin-1.520-1.noarch.rpm
/Sbin/service httpd start
/Sbin/service mysqld start
Echo "SELINUX = disabled">/etc/sysconfig/selinux

 

II. install ionCUBE
Reference

Wgethttp: // www.dmasoftlab.com/cont/download/ioncube_loaders_lin_x86.tar.gz
Tar zxvf ioncube_loaders_lin_x86.tar.gz
Cp-rf ioncube/usr/local/
Php-v
Check the php version and write it down (for example, Version 5.1). Next, select
Vim/etc/php. ini
Enter
Zend_extension =/usr/local/ioncube/ioncube_loader_lin_5.1.so
(Note: If php is 5.1, use the previous sentence. Similarly, if php is 5.2, change it to 5.2.so)
Php-m
Check whether the load is successful and restart the httpd service.
Service httpd restart

 

3. modify the Mac address of the NIC
Reference

Vim/etc/rc. d/rc. sysinit
Enter the following statement at the end.
/Sbin/ifconfig eth0 down
/Sbin/ifconfig eth0 hw ether 00: D0: 09: B8: B7: 34
/Sbin/ifconfig eth0 up
Restart the computer and use ifconfig to check whether the mac address of the NIC has been changed to 00: D0: 09: B8: B7: 34.

 

 

IV. FreeRadius installation and configuration
Reference

Wgethttp: // www.dmasoftlab.com/cont/download/freeradius-server-2.1.8-dmamod-1.tar.gz
Tar xvf freeradius-server-2.1.8-dmamod-1.tar.gz
Cd freeradius-server-2.1.8
./Configure & make install & chmod644/usr/local/etc/raddb/dictionary & radiusd-X
Note that X is in upper case. If Ready to process requests is displayed, it indicates that the installation is correct, and then enter the following command:
Chown apache/usr/local/etc/raddb & chown apache/usr/local/etc/raddb/clients. conf

 

5. create and set MySql-related databases.
Reference

/Etc/init. d/mysqld start
Mysql-u root-p 123456
Note that 123456 is the root password you set when installing Mysql (you should change it to your local password, which is blank by default), and then enter the following content at the Mysql command prompt:
Create 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;
Exit

 

 

6. install Radius Manager
Reference

Download the installation file with wget ftp://angela-ctce.3322.org/radiusmanager-3.6.1.tgzor wgetftp: // angela-ctce.3322.org: 2121/radiusmanager-3.6.1.tgz (not guaranteed to boot every day. You can also go to http://www.routerclub.com/to search for the installation file and then upload it to the CentOS host), and then execute the following commands in sequence:
Tar zxvf radiusmanager-3.6.1.tgz
Cd radiusmanager-3.6.1-rel/
Chmod 755 install. sh
./Install. sh
Then, the installation page appears, and press enter (except whether to press "Y" for the installation time, the default settings are used for other operations ).
Run the vim/etc/crontab command and add the following content (note that the following 12345 is the default password ):
02 0 *** root/usr/bin/php/var/www/html/radiusmanager/rmscheduler. php 12345
Set the relevant service to start automatically when it is started. the method is vim/etc/rc. local, and add the following content:
/Usr/local/sbin/radiusd
/Usr/local/sbin/rmpoller
/Sbin/service httpd start
/Sbin/service mysqld start
Use an ssh File transmission tool, such as Secure File transferclient, to transfer mod.txtand lic.txt to/var/www/html/radiusmanager. Restart the computer. Run radiusd-X to view the running result.
Enter the following command. if Access-Accept is returned, the operation is successful. Otherwise, the operation is faulty.
Radtest user 1111 localhost 1812 testing123
If the installation is successful, you can view
Http: // radmius/computer address/radiusmanager/admin. php view management panel, default user name and password admin/1111
Http: // radmius/computer address/radiusmanager/user. php view user panel, default user name and password user/1111

 

 

VII. localization of Radius Manager
Reference

Use wget secret.
Run the following command:
Unzip-o Chinese-3.6.1.zip-d/var/www/html/radiusmanager/lang/
Log on to the management page of Radius Manager in the browser:
Http: // radmius/computer address/radiusmanager/admin. php view management panel (default username and password admin/1111)

 

 

--------------------------------------------
The above is all the content of the tutorial.
Let me write my own installation experience.
Modify the MAC address,
The original method in the tutorial will have some inexplicable problems. once it appears, there is no other way to reinstall the system according to my level.
So I used another method to modify the MAC address.
Reference

# Vi/etc/sysconfig/network-scripts/ifcfg-ethX

 

Comment out the HWADDR row. If yes, add the following modifications:

MACADDR {NEW_MAC_ADDR}

Save and exit.

Related Article

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.