Move folder outside the www folder for security reasons  [SOLVED]

Discussions about the usage of KeyHelp.
Post Reply
User avatar
Marcel
Posts: 2
Joined: Fri 26. Sep 2025, 15:51

Move folder outside the www folder for security reasons

Post by Marcel »

Hello Keyhelp users, :D

I recently started using Keyhelp Pro. I really like it so far, it works exactly as it should. However, I have two questions:

Question 1: When I try to upload a folder outside the WWW directory, it doesn’t work. I get the error message: Failed to upload file xxxxx.zip. Is it not possible to upload files outside the WWW directory, or is there a way to make this work? If so, how does it work?

Question 2: If it is possible, what would be the correct full path to the uploaded folder outside my WWW directory for normal users (not root)? For example, is it:

/home/user/<username>/xxxfolder

user/<username>/xxxfolder

or / <username>/xxxfolder

I would really appreciate a clear answer. Thanks again for your help.

Best regards,
Marcel
User avatar
24unix
Posts: 2098
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Move folder outside the www folder for security reasons  [SOLVED]

Post by 24unix »

Marcel wrote: Sat 27. Sep 2025, 10:17 Hello Keyhelp users, :D

I recently started using Keyhelp Pro. I really like it so far, it works exactly as it should. However, I have two questions:

Question 1: When I try to upload a folder outside the WWW directory, it doesn’t work. I get the error message: Failed to upload file xxxxx.zip. Is it not possible to upload files outside the WWW directory, or is there a way to make this work? If so, how does it work?
Just create a folder myproject, inside a folder public, and use that as the document root.
Marcel wrote: Sat 27. Sep 2025, 10:17
Question 2: If it is possible, what would be the correct full path to the uploaded folder outside my WWW directory for normal users (not root)? For example, is it:

/home/user/<username>/xxxfolder

user/<username>/xxxfolder

or / <username>/xxxfolder
In this case, it would be /home/users/<username>/myproject
Cheers Micha
--
A backend dev walks into a bar, orders 1 beer.
Then orders 100 beers.
Then orders -1 beers.
Then orders “a lizard”.
Then explodes.

The bartender says: “You really should validate your input.”
User avatar
Marcel
Posts: 2
Joined: Fri 26. Sep 2025, 15:51

Re: Move folder outside the www folder for security reasons

Post by Marcel »

Thx 24unix will do that then.
Post Reply