Getting the same error
ba@magento-laya-vm:~/apps/magento/htdocs$ sudo php bin/magento-cli setup:upgrade
# Check the user before running the command
if [ `id | sed -e s/uid=//g -e s/\(.*//g` -ne 0 ]; then
echo "Please run this script using admin privileges (as root user or using sudo). This way, it will use the pro
per user to run the Magento's command" >> /dev/stderr
exit 1
fi
# Run the Magento's commands using the web servers' user and group
su daemon -s /bin/bash -c "/opt/bitnami/php/bin/php /opt/bitnami/apps/magento/htdocs/bin/magento $*"
please help me to solve this issue.
Thanks.
Can you please check with your IT(Server) team, if they can help you to provide the access to run command?
Thanks
We are the IT team and new to Magento, that's why asking help from you for how to solve this.
Thanks.
So you can contact the hosting provider (ie: Google Cloud server). They will provide you the ssh access for server. You can access Magento root directory on this server by ssh or putty.
If you already have ssh access user details. Share the username with them and ask them to give you permission to run commands for magento.
Let me know, if you have any confusion in this.
Thanks