0

I have tried numerous installations of magento on Bitnami and I keep getting the below error when trying to upgrade using 'sudo php /opt/bitnami/apps/magento/htdocs/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 proper 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 $*"

I have tried changing permissions and group users on all files but it doesnt seem to make any difference. Please advise. Thank you!

asked Jul 23, 2018 at 19:16

1 Answer 1

2

You should execute the magento-cli script directly, not via the PHP interpreter:

cd /opt/bitnami/apps/magento/htdocs
sudo bin/magento-cli setup:upgrade

Also, make sure you are logging in to the box as the "bitnami" user. If you're on EC2, it will by default suggest the "ubuntu" user. While logging in does work, it appears to cause some issues when the magento-cli script attempts to su daemon.

answered Aug 10, 2018 at 14:22

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.