Open shaund-teqcle-co-za opened 2 months ago
Hi Shaun. I hope that you find this information useful. On the freeradius website they have binary packages for a limited number of os : Ubuntu, Debian, Rocky Linux, CentOS and RHEL. The other option is to compile from source(just increases your work). To anser the question on other OS, well i haven't seen any and am sure it will only increase you work(reading a lot of documentations , new commands ). Here are some changes that I had to do to make daroradius work. I get that you are stuck at daloradius step (all previous installations and setup have no issue). Am working on parrot os so its just the same os as yours.
Terminal cd /var/www git clone https://github.com/lirantal/daloradius.git
mkdir -p /var/log/apache2/daloradius/{operators,users}
from here I advice that you use a file manager and text editor with root privileges ie caja and geany / puma. It will help in understanding the process to solve any error that you might face. open the directory /etc/apache2/
open directory /etc/apache2/sites-available copy file(000-default.conf) and past it 2 times in the same directory. Rename the first to users.conf ,the other to operators.conf.
open the files and edit as shown
Let serverAdmin be as it is( apache might generate an error like it did for me) Don't place the reverse slash() generates a syntax error.
Next step is as documented in the wiki.
cd /var/www/daloradius/app/common/includes
cp daloradius.conf.php.sample daloradius.conf.php
chown www-data:www-data daloradius.conf.php
chmod 664 daloradius.conf.php
chown www-data:www-data /var/www/daloradius/contrib/scripts/dalo-crontab
cd /var/www/daloradius/
mkdir -p var/{log,backup}
chown -R www-data:www-data var
chmod -R 775 var
cd /var/www/daloradius/contrib/db mariadb -u raduser -p raddb < fr3-mariadb-freeradius.sql mariadb -u raduser -p raddb < mariadb-daloradius.sql
a2dissite 000-default.conf
a2ensite operators.conf users.conf
Now give apache the permission to access the site root directory.
chown -R www-data:www-data /var/www/daloradius
chmod -R 775 /var/www/daloradius
Most likely you will get an error when using system control to restart apache
systemctl restart apache2
use sudo service apache2 restart
I haven't commented much because its in line with that documentation from the wiki. You can comment back if you still have an issue
Hi Codeleny.
Thanks so much for this. I did come right with it.
The problem is in the "doc/install/INSTALL" file which states:
You also need to change permissions so that the webserver user and group are owning daloRADIUS's directory. In Debian the user and group are www-data and so we need to do this:
chown www-data:www-data /var/www/daloradius -R chmod 644 /var/www/daloradius/library/daloradius.conf.php
The chmod command is for having the daloradius.conf.php configuration file writable by the webserver for easy administration from the web interface.
When I ran a locate, I found the file in /var/www/html/daloradius/app/common/includes
I have it running on Rocky 9.4
Kind Regards.
Shaun
On 2024/08/27 09:15, Codeleny wrote:
Hi Shaun. I hope that you find this information useful. On the freeradius website they have binary packages for a limited number of os : Ubuntu, Debian, Rocky Linux, CentOS and RHEL. The other option is to compile from source(just increases your work). To anser the question on other OS, well i haven't seen any and am sure it will only increase you work(reading a lot of documentations , new commands ). Here are some changes that I had to do to make daroradius work. I get that you are stuck at daloradius step (all previous installations and setup have no issue). Am working on parrot os so its just the same os as yours.
Terminal cd /var/www git clone https://github.com/lirantal/daloradius.git
mkdir -p /var/log/apache2/daloradius/{operators,users}
from here I advice that you use a file manager and text editor with root privileges ie caja and geany / puma. It will help in understanding the process to solve any error that you might face. open the directory /etc/apache2/ Screenshot.at.2024-08-27.09-09-02.png (view on web) https://github.com/user-attachments/assets/c9f417ec-3e2a-4a69-ab2c-358c7b6121fc
open directory /etc/apache2/sites-available copy file(000-default.conf) and past it 2 times in the same directory. Rename the first to users.conf ,the other to operators.conf.
open the files and edit as shown Screenshot.at.2024-08-27.09-24-47.png (view on web) https://github.com/user-attachments/assets/ad270359-62fc-4803-b650-dc3b4ccd4ea2 Screenshot.at.2024-08-27.09-26-29.png (view on web) https://github.com/user-attachments/assets/00cf20b7-de6c-4bd7-937f-5981b95bb12a
Let serverAdmin be as it is( apache might generate an error like it did for me) Don't place the reverse slash() generates a syntax error.
Next step is as documented in the wiki.
cd /var/www/daloradius/app/common/includes cp daloradius.conf.php.sample daloradius.conf.php chown www-data:www-data daloradius.conf.php chmod 664 daloradius.conf.php
chown www-data:www-data /var/www/daloradius/contrib/scripts/dalo-crontab
Screenshot.at.2024-08-27.09-37-25.png (view on web) https://github.com/user-attachments/assets/a6080dd7-af7d-405b-bbf2-1686ec0065a0
cd /var/www/daloradius/ mkdir -p var/{log,backup} chown -R www-data:www-data var chmod -R 775 var
cd /var/www/daloradius/contrib/db mariadb -u raduser -p raddb < fr3-mariadb-freeradius.sql mariadb -u raduser -p raddb < mariadb-daloradius.sql
a2dissite 000-default.conf a2ensite operators.conf users.conf
Now give apache the permission to access the site root directory. chown -R www-data:www-data /var/www/daloradius chmod -R 775 /var/www/daloradius
Most likely you will get an error when using system control to restart apache systemctl restart apache2
use sudo service apache2 restart
I haven't commented much because its in line with that documentation from the wiki. You can comment back if you still have an issue Screenshot.at.2024-08-27.10-13-08.png (view on web) https://github.com/user-attachments/assets/7f322ead-5948-4310-9fbf-772867396215 Screenshot.at.2024-08-27.10-14-33.png (view on web) https://github.com/user-attachments/assets/be4ba073-f4c9-473c-9835-cbef5b852f86
— Reply to this email directly, view it on GitHub https://github.com/lirantal/daloradius/issues/556#issuecomment-2311745525, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU3HYGFX7KE2X36DWJNIZ3ZTQRQ3AVCNFSM6AAAAABMZWL4SKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRG42DKNJSGU. You are receiving this because you authored the thread.Message ID: @.***>
Following the installation instructions does not work
To Reproduce Steps to reproduce the behavior: 1 Download the package as explained and unzip it. 2 Copy the directory to /var/www/... 3 cd into that directory and look for the Library directory. It does not exists, which means that I cannot continue with the installation
Expected behavior That the Library directory would be available as explained in the installation document
Desktop (please complete the following information):
Is there any documentation that will allow me to install DaloRadius on a non-debian based OS?
Kind Regards.
Shaun