How to Add a new Folder at domain.com/apps/

Hello. It’s been a while since I visited the Forum.
I need to be able to setup a Folder called Apps - not in /public_html But in the level above. i.e. domain.com/apps/
It would seem this is not possible using the File Manager.
Could someone please guide me in the right direction please?

Thank you!
Edward

Hello @EdwardC,

You can’t do it using file manager because when HestiaCP creates the web domain, it changes the perms of dir /$HOMEDIR/$user/web/$domain/ to 551 and that means no write perm so you can’t add neither directories nor files.

If you really need it, you could create it as user root.

Example using test (as user and group), example.com as domain and Apps as the new dir:

mkdir /home/test/web/example.com/Apps
chown test:test /home/test/web/example.com/Apps
chmod 751 /home/test/web/example.com/Apps

Or if you can login with your user via ssh:

cd ~/web/
chmod 751 example.com
mkdir example.com/Apps
chmod 751 example.com/Apps
chmod 551 example.com
1 Like

Hello @sahsanu. Thank you for that excellent explanation and recommendations. Your time and effort is greatly appreciated.

Edward

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.