Could someone help me?  [SOLVED]

General discussions around KeyHelp.
Post Reply
User avatar
rogernet
KeyHelp Translator
Posts: 26
Joined: Tue 3. Nov 2020, 20:56
Location: Brazil
Contact:

Could someone help me?

Post 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
User avatar
Florian
Keyweb AG
Posts: 1682
Joined: Wed 20. Jan 2016, 02:28

Re: Could someone help me?

Post 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?
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
rogernet
KeyHelp Translator
Posts: 26
Joined: Tue 3. Nov 2020, 20:56
Location: Brazil
Contact:

Re: Could someone help me?

Post 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.
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Could someone help me?

Post 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).
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
rogernet
KeyHelp Translator
Posts: 26
Joined: Tue 3. Nov 2020, 20:56
Location: Brazil
Contact:

Re: Could someone help me?

Post 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.
User avatar
Alexander
Keyweb AG
Posts: 4448
Joined: Wed 20. Jan 2016, 02:23

Re: Could someone help me?  [SOLVED]

Post 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.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
rogernet
KeyHelp Translator
Posts: 26
Joined: Tue 3. Nov 2020, 20:56
Location: Brazil
Contact:

Re: Could someone help me?

Post 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.
Post Reply