Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo mysql -u root -p rd < /var/www/html/___freeradius/cake3/rd_cake/setup/db/rd.sql
- sudo tar xzf /var/www/html/___freeradius/cake2/rd_cake/Setup/Radius/freeradius-3-radiusdesk.tar.gz --one-top-level=/etc/freeradius/
- sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/tmp
- sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/logs
- sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/realms
- sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/dynamic_details
- sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/dynamic_photos
- sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/access_providers
- sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/files/imagecache
- sudo tar xzf /root/freeradius-3-radiusdesk.tar.gz --one-top-level=/etc/freeradius/
- CREATE DATABASE radius;
- GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "radius123456";
- FLUSH PRIVILEGES;
- quit
- mysql -u root radius < /etc/freeradius/3.0/mods-config/sql/main/mysql/schema.sql
- mysql -u root -p daloradius < contrib/db/fr2-mysql-daloradius-and-freeradius.sql
- mysql -u root -p daloradius < contrib/db/mysql-daloradius.sql
- daloradius
- ==========
- sudo apt -y install apache2
- sudo apt -y install php libapache2-mod-php php-{gd,common,mail,mail-mime,mysql,pear,db,mbstring,xml,curl}
- apt-get remove mariadb-server
- sudo apt-get install software-properties-common
- sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
- sudo add-apt-repository "deb [arch=amd64,arm64,ppc64el] http://mariadb.mirror.liquidtelecom.com/repo/10.4/ubuntu $(lsb_release -cs) main"
- sudo apt update
- sudo apt -y install mariadb-server mariadb-client
- mysql -u root -p
- CREATE DATABASE radius;
- GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "radius2020";
- FLUSH PRIVILEGES;
- quit
- sudo apt -y install freeradius freeradius-mysql freeradius-utils
- mysql -u root -p radius < /etc/freeradius/3.0/mods-config/sql/main/mysql/schema.sql
- sudo ln -s /etc/freeradius/3.0/mods-available/sql /etc/freeradius/3.0/mods-enabled/
- nano /etc/freeradius/3.0/mods-enabled/sql
- wget https://github.com/lirantal/daloradius/archive/master.zip
- unzip master.zip
- mv daloradius-master daloradius
- cd daloradius
- mysql -u root -p radius < /var/www/html/daloradius/contrib/db/fr2-mysql-daloradius-and-freeradius.sql
- mysql -u root -p radius < /var/www/html/daloradius/contrib/db/mysql-daloradius.sql
- cd ..
- sudo mv daloradius /var/www/html/
- sudo chown -R www-data:www-data /var/www/html/daloradius/
- sudo chmod 664 /var/www/html/daloradius/library/daloradius.conf.php
- nano /var/www/html/daloradius/library/daloradius.conf.php
- https://sourceforge.net/p/daloradius/discussion/684102/thread/56b11486/?limit=25
- abcdefghijkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement