Anyone can help me this problem ?
Please execute 'magento-cli' instead of 'magento' that uses the proper user to execute any Magento's command
This problem happen when i run command :
php bin/magento setup:upgrade
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Simple, just using 'magento-cli' instead of 'magento'
sudo bin/magento-cli setup:upgrade sudo bin/magento-cli setup:static-content:deploy -f sudo bin/magento-cli indexer:reindex sudo bin/magento-cli cache:flush
1. Login to your account using ssh
2. At the command prompt, change to the directory where Magento is installed. For example, if Magento is installed in the document root directory, type cd ~/public_html.
3. Type the following command to make the CLI executable
chmod 744 bin/magento
4. To run the CLI and view the available command options, type the following command