Hi,
Just installed last Hestia version. I’m installing WordPress on Nginx, MariaDB and PHP stack.
Created a dedicated user to manage WordPress. Gave him bash shell in order to use WP-CLI.
The problem comes out when I try to create any file on its home directory: “Permission denied”…
With previous Hestia version I never had this problem… something changed in this last version?
Due to the sftp chroot implementation, it needs to be owned by root. There are already a few default folders created, like .composer or .cache and so on.
Or just enable WP-CLI for root and use it anywhere on any site anytime. But after adding plugins/themes or any file operations you need to chown -R <hestiauser>:<hestiauser> xxx/public_html to reset permissions for the particular WP file to its user.
You can setup an alias like this in . ~/.bashrc alias wp='wp --allow-root'
Please take care, there has been a permission change to prevent nginx errors in log files, the current permission set is user:www-data for public_html and user:user for every file in it. If you set the chown as described, the permission for public_html will aswell be set to user:user.