updates: I change the ownership of the sql file in the mods-enabled folder and made it root:root and added setenforce 0. Now radiusd is running 2015-06-09 11:27 GMT+02:00 ICHIBA Sara <ichi.sara@gmail.com>:
updates: I added the sql file which contains the connection information to mysql db into the mods-enabled (find the find attached).
Now when I try to start my radiusd it failed with following errors:
[root@freeradius mods-enabled]# systemctl status radiusd radiusd.service - FreeRADIUS high performance RADIUS server. Loaded: loaded (/usr/lib/systemd/system/radiusd.service; disabled) Active: failed (Result: exit-code) since mar. 2015-06-09 09:09:35 UTC; 1min 33s ago Process: 20981 ExecStartPre=/usr/sbin/radiusd -C (code=exited, status=1/FAILURE) Process: 20979 ExecStartPre=/bin/chown -R radiusd.radiusd /var/run/radiusd (code=exited, status=0/SUCCESS)
juin 09 09:09:35 freeradius systemd[1]: Starting FreeRADIUS high performance RADIUS server.... juin 09 09:09:35 freeradius systemd[1]: radiusd.service: control process exited, code=exited status=1 juin 09 09:09:35 freeradius systemd[1]: Failed to start FreeRADIUS high performance RADIUS server.. juin 09 09:09:35 freeradius systemd[1]: Unit radiusd.service entered failed state. [root@freeradius mods-enabled]# systemctl start radiusd Job for radiusd.service failed. See 'systemctl status radiusd.service' and 'journalctl -xn' for details.
and when I do radiusd -X i got the msg Ready to process requests. Is it normal??
2015-06-09 10:52 GMT+02:00 ICHIBA Sara <ichi.sara@gmail.com>:
it's me again i'm looking for the sql.conf file where I can provide the connection info related to mysql database.
2015-06-09 10:04 GMT+02:00 ICHIBA Sara <ichi.sara@gmail.com>:
Thank you for your response; Actually I can see now that I have the files needed but I'm confused which one to choose. I think I should go with the main/mysql folder. Am I right?
/etc/raddb/mods-config/sql/counter/mysql /etc/raddb/mods-config/sql/counter/mysql/dailycounter.conf /etc/raddb/mods-config/sql/counter/mysql/expire_on_login.conf /etc/raddb/mods-config/sql/counter/mysql/monthlycounter.conf /etc/raddb/mods-config/sql/counter/mysql/noresetcounter.conf /etc/raddb/mods-config/sql/cui/mysql /etc/raddb/mods-config/sql/cui/mysql/queries.conf /etc/raddb/mods-config/sql/cui/mysql/schema.sql /etc/raddb/mods-config/sql/ippool-dhcp/mysql /etc/raddb/mods-config/sql/ippool-dhcp/mysql/queries.conf /etc/raddb/mods-config/sql/ippool-dhcp/mysql/schema.sql /etc/raddb/mods-config/sql/ippool/mysql /etc/raddb/mods-config/sql/ippool/mysql/queries.conf /etc/raddb/mods-config/sql/ippool/mysql/schema.sql /etc/raddb/mods-config/sql/main/mysql /etc/raddb/mods-config/sql/main/mysql/extras /etc/raddb/mods-config/sql/main/mysql/extras/wimax /etc/raddb/mods-config/sql/main/mysql/extras/wimax/queries.conf /etc/raddb/mods-config/sql/main/mysql/extras/wimax/schema.sql /etc/raddb/mods-config/sql/main/mysql/queries.conf /etc/raddb/mods-config/sql/main/mysql/schema.sql /etc/raddb/mods-config/sql/main/mysql/setup.sql /etc/raddb/mods-config/sql/main/ndb /etc/raddb/mods-config/sql/main/ndb/README /etc/raddb/mods-config/sql/main/ndb/schema.sql /etc/raddb/mods-config/sql/main/ndb/setup.sql /usr/lib64/freeradius/rlm_sql_mysql.so
2015-06-09 9:27 GMT+02:00 ICHIBA Sara <ichi.sara@gmail.com>:
hello there,
I'm trying to install freeradius on a centos 7 VM. So far I installed mariadb-server 1:5.5.41-2.el7_0 , freeradius 3.0.4-6.el7 , freeradius-mysql 3.0.4-6.el7 and freeradius-utils 3.0.4-6.el7 .
I'm using yum to install these packages. But when I try to import the sql schema i can't find it.
any ideas? What's wrong whith what I did??