I’ve noticed the command listed here several times
ubuntu@ip-172-26-5-222:/var/www/ghost$ ghost doctor
Checking system Node.js version
Checking logged in user
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking operating system compatibility
Checking for a MySQL installation
sudo systemctl is-active ghost_blog-becinteligencia-com-br
Validating config
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
Checking binary dependencies
One or more errors occurred.
Checking if logged in user is directory owner
Message: Your user does not own the directory /var/www/ghost and is also not a member of the owning group. You must either log in with the user that owns the directory or add your user to the owning group. Help: How to install & setup Ghost on Ubuntu 16.04, 18.04, 20.04 or 22.04
I did the update as requested in the documentation, see the return. Can you help me?
Last login: Thu Apr 23 11:52:59 2020 from 179.212.91.104
ubuntu@ip-172-26-5-222:~ sudo su - bec
bec@ip-172-26-5-222:~ cd /var/www/ghost
bec@ip-172-26-5-222:/var/www/ghost$ ghost update
sudo systemctl is-active ghost_blog-becinteligencia-com-br
? Sudo Password [hidden]
Checking system Node.js version
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
One or more errors occurred.
Checking if logged in user is directory owner > Message: Your user does not own the directory /var/www/ghost and is also not a member of the owning group. You must either log in with the user that owns the directory or add your user to the owning group.
Checking current folder permissions > Message: The directory /var/www/ghost is not writable by your user. You must grant write access and try again.
And the user is the bec where I did the installation.
ubuntu@ip-172-26-5-222:~ sudo su - bec bec@ip-172-26-5-222:~ cd /var/www/ghost
bec@ip-172-26-5-222:/var/www/ghost$ ghost update
sudo systemctl is-active ghost_blog-becinteligencia-com-br
? Sudo Password [hidden]
Checking system Node.js version
Ensuring user is not logged in as ghost user
Checking if logged in user is directory owner
Checking current folder permissions
Checking folder permissions
Checking file permissions
Checking content folder ownership
Checking memory availability
One or more errors occurred.
Checking if logged in user is directory owner > Message: Your user does not own the directory /var/www/ghost and is also not a member of the owning group. You must either log in with the user that owns the directory or add your user to the owning group.
Checking current folder permissions > Message: The directory /var/www/ghost is not writable by your user. You must grant write access and try again.