我安装了FreeRadius和Webinterface Daloradius。 很遗憾,我无法登录http://radiusip/daloradius。
我总是收到错误消息:
数据库连接错误 错误消息:数据库错误:未找到扩展名
当我退出调试(FreeRadius -X)时,Log总是写这个:
tail -f /var/log/mysql/error.log:
2016-08-26T10:33:54.070388Z 444 [Note] Aborted connection 444 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.070498Z 443 [Note] Aborted connection 443 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.070613Z 442 [Note] Aborted connection 442 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.070677Z 441 [Note] Aborted connection 441 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.070788Z 440 [Note] Aborted connection 440 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.070979Z 439 [Note] Aborted connection 439 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.071049Z 438 [Note] Aborted connection 438 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.071159Z 437 [Note] Aborted connection 437 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.071274Z 436 [Note] Aborted connection 436 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
2016-08-26T10:33:54.071306Z 455 [Note] Aborted connection 455 to db: 'radius' user: 'freeradius' host: 'localhost' (Got an error reading communication packets)
密码在所有必要的配置文件中100%正确,我已取消防火墙。我认为这与未正确关闭连接和/或错误权限有关。
MySql-User的权限是:
mysql> show grants;
+----------------------------------------------------------------+
| Grants for freeradius@localhost |
+----------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'freeradius'@'localhost' |
| GRANT ALL PRIVILEGES ON `radius`.* TO 'freeradius'@'localhost' |
+----------------------------------------------------------------+
2 rows in set (0.00 sec)
任何想法?
是Ubuntu 16.04,Daloradius 0909和FreeRadius V3
答案 0 :(得分:1)
我设法让这个工作。 如果你遇到同样的问题,这有助于我:
问题是,我安装了PHP7.0,但daloradius只支持5.0 所以我们必须改变语法阅读的规则。使用以下命令:
确定你有所有必要的套餐
sudo apt-get install php-common php-gd php-curl php-mail php-mail-mime php-pear php-dbnter code here
sudo apt-get install php-common php-gd php-curl php-mail php-mail-mime php-pear php-db
pear install DB
cd /var/www/html/daloradius/library/
vim daloradius.conf.php -> CONFIG_DB_ENGINE auf "mysqli" # from mysql to mysqli
vim opendb.php -> $dbSocket->query("SET GLOBAL sql_mode = '';"); #append this line at the end of the file
现在我们必须给db-user freeradius超级权限:
mysql -u root -p
mysql> GRANT SUPER ON *.* TO 'freeradius'@'localhost' IDENTIFIED BY 'password';
mysql> flush privileges;
cd /var/www/html/daloradius/contrib/db/
mysql -u root -p radius <mysql-daloradius.sql
答案 1 :(得分:0)
我到达这里是因为尝试登录后出现了相同的错误消息。但是在MySQL和FreeRadius中没有记录错误。因此,我重新启动了Ubuntu Server,错误消息消失了。