Page 1 of 1

Move folder outside the www folder for security reasons

Posted: Sat 27. Sep 2025, 10:17
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

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

Posted: Sat 27. Sep 2025, 12:33
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

Re: Move folder outside the www folder for security reasons

Posted: Sat 27. Sep 2025, 20:40
by Marcel
Thx 24unix will do that then.