When a user is created with website the template i added on the ftp is added but the directories like /dashboard are empty and should have content in, how to fix
What folder did you upload it to?
i uploaded it to “”/usr/local/hestia/data/templates/web/skel/public_html""
@sahsanu any help please
What kind of template are you trying to add?
For web templates is here /usr/local/hestia/data/templates/web/nginx/php-fpm
For php templates /usr/local/hestia/data/templates/web/php-fpm
It doesn’t help pinging me or any other moderators. We do our work for free and we don’t make any money out of Hestia at the moment…
okay sorry, i can still get help?
Show the output of this command:
ls -la /usr/local/hestia/data/templates/web/skel/public_html/dashboard/ | head
Hello,
root@alpha-e04909c76b:~# ls -la /usr/local/hestia/data/templates/web/skel/public_html/dashboard/ | head
total 104
drwsrwsrwt 18 root root 4096 Aug 2 10:28 .
drwxr-xr-x 12 root root 4096 Aug 2 10:28 ..
-rwxrwxrwt 1 root root 778 Jul 30 16:12 .htaccess
drwsrwsrwt 2 root root 4096 Aug 2 10:28 account
drwsrwsrwt 2 root root 4096 Aug 2 10:28 api
drwsrwsrwt 2 root root 4096 Aug 2 10:28 clan
drwsrwsrwt 2 root root 4096 Aug 2 10:28 clans
drwsrwsrwt 2 root root 4096 Aug 2 10:28 download
drwsrwsrwt 7 root root 4096 Aug 2 10:28 errors
root@alpha-e04909c76b:~#"
Why you changed the perms to have setuid, setgid and sticky bit?
Also, is there a dashboard
dir in /home/YourUser/web/YourDomain/public_html/
?
the folder adds but theres nothing inside, and i changed perms to see if this could fix issue
I tested it right now and it works as expected:
❯ cd /usr/local/hestia/data/templates/web/skel/public_html
❯ mkdir dashboard
❯ echo file1 > dashboard/file1
❯ echo file2 > dashboard/file2
❯ mkdir dashboard/testdir
❯ echo test > dashboard/testdir/test
❯ ls -lR dashboard
dashboard:
total 12
-rw-r--r-- 1 root root 6 ago 2 15:46 file1
-rw-r--r-- 1 root root 6 ago 2 15:46 file2
drwxr-xr-x 2 root root 4096 ago 2 15:46 testdir
dashboard/testdir:
total 4
-rw-r--r-- 1 root root 5 ago 2 15:46 test
❯ v-add-user testdir '!!SecretPassword!!' [email protected]
❯ v-add-web-domain testdir testdir.example.net
❯ ls -lR /home/testdir/web/testdir.example.net/public_html/dashboard
/home/testdir/web/testdir.example.net/public_html/dashboard:
total 12
-rw-r--r-- 1 testdir testdir 6 ago 2 15:48 file1
-rw-r--r-- 1 testdir testdir 6 ago 2 15:48 file2
drwxr-xr-x 2 testdir testdir 4096 ago 2 15:48 testdir
/home/testdir/web/testdir.example.net/public_html/dashboard/testdir:
total 4
-rw-r--r-- 1 testdir testdir 5 ago 2 15:48 test
When you add a web domain, Hestia executes this copmmand:
user_exec cp -r $WEBTPL/skel/* "$HOMEDIR/$user/web/$domain/" > /dev/null 2>&1
So it is just a cp -r
and it should work fine.
i make the account and domain with the API, but the template should add by itself with no error
does bind9 has smth to do?
i created an acc manually with the panel and i have same error, the folders are empty
Are you adding a web domain to that new user?
find /usr/local/hestia/data/templates/web/skel/public_html -type d | xargs chmod 755
find /usr/local/hestia/data/templates/web/skel/public_html -type f | xargs chmod 644
And try to create a new user and add a web domain to that user.
well i found the “fix” on hestia FTP dosnt show up but if you use a FTP client like WINSCP will show the folders content
well nvm on ftp shows but on the website does not