Closed erikperin closed 2 years ago
It should install over here:
or
Please check the full logs
now returns that
Error: Path outside of user homedir (Composer dir)
"Does the admin user exists?" YES, after installiing
Run: echo $(readlink -m "/home/admin/.composer" | egrep "^/home/admin/")
in cli
Same,
root@server:/home/admin# v-add-sys-phpmailer Error: Path outside of user homedir (Composer dir)
echo $(readlink -m "/home/admin/.composer" | egrep "^/home/admin/")
This is the check that fails it on...
root@server:/home/admin/web# echo $(readlink -m "/home/admin/.composer" | egrep "^/home/admin/")
root@server:/home/admin/web#
What returns: readlink -m "/home/admin/.composer"
?
On my server it should return: readlink -m "/home/admin/.composer" /home/admin/.composer
/mnt/armazenamento/home/admin/.composer
That would explain why it fails..
Has it been symlinked?
Mount the storage with
mkdir /home/ mount --bind /mnt/armazenamento/home/ /home/
And it should work as expected during install
See for an /example: https://docs.hestiacp.com/admin_docs/backups.html#how-to-change-default-backup-folder
As it is not an bug I will close the issue
It is not a bug but maybe hestia could throw an error to avoid the guesswork
I used to do the same thing with VestaCP and other CPs, and it always worked... but I'll try to do it anyway.
We're not vesta or other cps, there are some limitations due to security, if you follow the mount --bind example it should work. I'm not sure if a warning is worth it, I never noticed such a mount "use case" since a few years.
See for an /example: https://docs.hestiacp.com/admin_docs/backups.html#how-to-change-default-backup-folder
But it doesn't take up space on your system drive? Because the link (mnt/armazenamento/home/) is on an external drive
See for an /example: https://docs.hestiacp.com/admin_docs/backups.html#how-to-change-default-backup-folder
But it doesn't take up space on your system drive? Because the link (mnt/armazenamento/home/) is on an external drive
You can mount the /home/ dir directly to external drive if you need.
I have successfully moved some users to /home2 mounted in a different disk with links and it works well with email servers. Didn't try it with website hosting though.
WOW! Thats works now!
Really thank you very much!
Keep up the beautiful work you've been doing. Really saved me. Thank you again.
I have successfully moved some users to /home2 mounted in a different disk with links and it works well with email servers. Didn't try it with website hosting though.
In the past Users could "already" create an folder point it to /private_folder/ and it would chown to the that user ... It is not a great idea ...
Describe the doubt
I have some error after fresh install
PHP Notice: Unable able to load required libaries. Please run v-add-sys-phpmailer in command line in /usr/local/hestia/web/inc/main.php on line 11 Unable able to load required libaries. Please run v-add-sys-phpmailer in command line
and when I'll access the dashboard panel, returns Unable able to load required libaries. Please run v-add-sys-phpmailer in command line
Tell us how to replicate the bug
I just install and run the fresh installation
Which components are affected by this bug?
Control Panel Command Line Interface, Control Panel Web Interface
Hestia Control Panel Version
1.6.0
Operating system
Debian 11
Log capture