Page 1 of 1
Could someone help me?
Posted: Wed 16. Oct 2024, 17:35
by rogernet
I'm trying to install the FossBilling financial manager, but without success. Below are the KeyHelp logs. I contacted the developer's support and they replied that the problem could be something in KeyHelp, which I'm still not sure about. That's why I posted the logs here to see if anyone can give me a suggestion.
Thank you.
When trying to access the installation link: "You don't have permission to access this resource. Server unable to read htaccess file, denying access to be safe" 403 Forbidden
Server log: "Permission denied: [remote IP:63573] AH00529: /home/users/edited/install/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/users/edited/cliente/install/' is executable"
PHP version: 8.3
Ubuntu: 20.04
Re: Could someone help me?
Posted: Wed 16. Oct 2024, 17:50
by Florian
HAllo,
have you checked the owner and rights of the folders and files?
/home/users/edited/install/.htaccess pcfg_openfile
Did you shorten the path here or do you try to install it above the www folder?
Re: Could someone help me?
Posted: Wed 16. Oct 2024, 19:53
by rogernet
Florian wrote: ↑Wed 16. Oct 2024, 17:50
HAllo,
have you checked the owner and rights of the folders and files?
/home/users/edited/install/.htaccess pcfg_openfile
Did you shorten the path here or do you try to install it above the www folder?
Thank you Florian for responding, answering your questions in the order you wrote them.
Yes, I have verified the ownership of the folders and files.
I am trying to install from a subdomain using KeyHelp's default method of creating subdomains.
Re: Could someone help me?
Posted: Thu 17. Oct 2024, 09:28
by Alexander
Hello,
like Florian already hinted:
The path should be like in 2) and not like 1)
Code: Select all
1) /home/users/edited/install/.htaccess pcfg_openfile
2) /home/users/edited/www/install/.htaccess pcfg_openfile
You try to install it above the www directory, where the Apache web server has no rights to access it (and you would not be able to assign a subdomain to this path).
Re: Could someone help me?
Posted: Thu 17. Oct 2024, 14:31
by rogernet
Alexander wrote: ↑Thu 17. Oct 2024, 09:28
Hello,
like Florian already hinted:
The path should be like in 2) and not like 1)
Code: Select all
1) /home/users/edited/install/.htaccess pcfg_openfile
2) /home/users/edited/www/install/.htaccess pcfg_openfile
You try to install it above the www directory, where the Apache web server has no rights to access it (and you would not be able to assign a subdomain to this path).
Thank you Florian and Alexander for your reply. I managed to solve the problem by downloading a previous version of this financial manager. The previous version installed normally, but the new one doesn't, so I believe there must be something wrong with the new version of this financial manager.
Thank you very much again.
Re: Could someone help me? [SOLVED]
Posted: Thu 17. Oct 2024, 14:57
by Alexander
I have tried to install the current version and manage to start the install process - here is how i did it:
1) I created a user for fossbilling (not required).
2) I created a subfolder in the users home directory called "fossbilling/".
(Example real path: /home/users/my-user/www/fossbilling/)
3) I downloaded FossBilling and uploaded it to this subfolder.
4) Fossbilling does not like to be called from a URL with subfolder (
https://my-domain.de/fossbilling/) instead, change the target-directory of the domain to the fossbilling subfolder, so that you can access it with
https://my-domain.de (or in your example
https://subdomain.my-domain.de)
5)
No comes the important part: FossBilling has default folder rights of 0700 (rwx --- ---), so it can only be read by the user account and not the web server. To be read by the web server, they should have 0755 (rwx r-x r-x)
You can now go on and change the folder privileges of all folders and their subfolders (and their subfolders and so on) by hand (very tedious) or you just call this command as a root user on your server:
Code: Select all
find <PATH_TO_YOUR_FOSSBILLING_INSTALLATION_FOLDER> -type d -exec chmod 0755 {} \;
This will update all folders within the fossbilling folder to have folder privileges of 0755.
Afterwards, you can access the URL and start the real install.
Re: Could someone help me?
Posted: Thu 17. Oct 2024, 15:53
by rogernet
Alexander wrote: ↑Thu 17. Oct 2024, 14:57
I have tried to install the current version and manage to start the install process - here is how i did it:
1) I created a user for fossbilling (not required).
2) I created a subfolder in the users home directory called "fossbilling/".
(Example real path: /home/users/my-user/www/fossbilling/)
3) I downloaded FossBilling and uploaded it to this subfolder.
4) Fossbilling does not like to be called from a URL with subfolder (
https://my-domain.de/fossbilling/) instead, change the target-directory of the domain to the fossbilling subfolder, so that you can access it with
https://my-domain.de (or in your example
https://subdomain.my-domain.de)
5)
No comes the important part: FossBilling has default folder rights of 0700 (rwx --- ---), so it can only be read by the user account and not the web server. To be read by the web server, they should have 0755 (rwx r-x r-x)
You can now go on and change the folder privileges of all folders and their subfolders (and their subfolders and so on) by hand (very tedious) or you just call this command as a root user on your server:
Code: Select all
find <PATH_TO_YOUR_FOSSBILLING_INSTALLATION_FOLDER> -type d -exec chmod 0755 {} \;
This will update all folders within the fossbilling folder to have folder privileges of 0755.
Afterwards, you can access the URL and start the real install.
Thank you very much Alexander for taking the time to install and provide me with this information.
I appreciate your kindness.