Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Installation Instructions #556

Open
shaund-teqcle-co-za opened this issue Aug 20, 2024 · 2 comments
Open

Incorrect Installation Instructions #556

shaund-teqcle-co-za opened this issue Aug 20, 2024 · 2 comments

Comments

@shaund-teqcle-co-za
Copy link

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):

  • OS: Linux Fedora
  • Your Browser: chrome,firefox
  • daloRADIUS Version: "cloned the master branch today on commit hash 9ca7d"]
  • FreeRADIUS Version: 3

Is there any documentation that will allow me to install DaloRadius on a non-debian based OS?

Kind Regards.

Shaun

@Codeleny
Copy link

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

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
Screenshot at 2024-08-27 09-26-29

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

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
Screenshot at 2024-08-27 10-14-33

@shaund-teqcle-co-za
Copy link
Author

shaund-teqcle-co-za commented Aug 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants