在vsphere安装虚拟机CentOS7+freeRadius+daloradius,按网上的教程(CentOS7下搭建LAMP+FreeRadius+Daloradius Web管理)磕磕绊绊的成功了,过年期间在家再配置一次,使用VMWare WorkStation15,当登录Daloradius时,提示错误:Database connection error
Error Message: DB Error: extension not found
修改daloradius.conf.php,$configValues['CONFIG_DB_ENGINE'] = 'mysqli'; 登录错误改成:Database connection error
Error Message: DB Error: connect failed
重新安装php,依然是错误,重新安装系统,问题依旧,最后想从vsphere里拷贝出来,直接下载虚拟机的配置文件夹,由于是6.7,下载的是个压缩包,解压后打开vmx文件,发现没有硬盘信息,查看下载的文件中有Error report.log,发现下载flat.vmdk文件失败,改用导出OVF模板,先关闭虚拟机,然后导出OVF模板,一直没反应,原来是浏览器阻止了弹出窗口,没法下载,允许弹窗后,下载了三个文件,然后在workstation里打开ovf文件,导入成功,然后测试登录daloradius,正常。
centos7 设置:
1、使用root自动登录
vi /etc/gdm/custom.conf 下的[daemon]加如下:
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root
2、防火墙开放端口
firewall-cmd --add-port=80/tcp --permanent #参数--permanent 是永久生效,不加重启后失效
firewall-cmd --reload # 重新加载后才能生效
3、挂载共享文件夹
sudo mount -t fuse.vmhgfs-fuse .host:/shared /mnt/hgfs -o allow_other #shared为vmware共享文件夹名
4、php7 版本安装pecl
wget http://pear.php.net/go-pear.phar
php go-pear.phar
ln -s /usr/local/php/bin/pecl /usr/bin/pecl
pecl install xxxx