Solved! Go to Solution.
No , you have done it correctly , but you are in wrong directory - /home/bitnami
this is /home/bitnami but you need to run this command from your magento2 root directory , where you have installed magento2 in that directory you need to run this command.
so after login to this /home/bitnami change directory by cd command and go to your root directory where you have installed magento2 and then run command
this is what works and also you can change back to default....
On AWS Lightsail the tool is called magento instead.
sudo /opt/bitnami/apps/magento/htdocs/bin/magento deploy:mode:set developer
I changed it to default mode by using this path /apps/magento/htdocs/app/etc/env.php
then find where it says developer, and change it to default.
'MAGE_MODE' => 'default',
check in on my SSH and it says Default
Just Flush cache on ssh
sudo /opt/bitnami/apps/magento/htdocs/bin/magento cache:flush
there you go change to any mode follow above.
You have to obtain SSH credentials.
Once logged in go to magento root folder and run:
php bin/magento deploy:mode:set developer
You can change developer mode from app/etc/env.php file as well.
you can run this command as well : php bin/magento deploy:mode:set developer
But you must required SSH access with php global environment setup ,so you can run directly commands from your magento 2 root directory.
Right now , might be php environment varriable is not set to global level so you are unable to run commands.
Hey kgerasimov,
thank you for all your help so far.
I got into my root folder by typing in sudo su on my lightsail ssh, but when i typed in:
php bin/magento deploy:mode:set developer
it didn't work.
came back as "could not open input file: bin/magento"
Am i doing something wrong?
Please advise
Rav
Hey ManthanDave,
thank you for all your help so far.
I got into my root folder by typing in sudo su on my lightsail ssh, but when i typed in:
php bin/magento setup:deploy:mode:set developer
it didn't work, also i went to my aws cloud 9 for my file tree and found app/etc, but not env.php under etc.
is there something that i may be missing?
Thank you
Rav
You are adding setup before the command , which is wrong.
you need to run below command :
php bin/magento deploy:mode:set developer
what error give , when you run this command ?
Hey ManthanDave,
it says the same thing could not open input file: Bin/magento.
Thank you for your help i really hope you can help me figure this out.
Looks like you are not running this command from magento 2 root directory.
give me path from where are you running this command ?
because you need to run this command from magento 2 root directory so.
Hey ManthanDave,
Okay, so i run it from my SSH from AWS LightSail Instance.
Ityped in sudo su. then root (root@"my-IP":/home/bitnami#) opens up.
I type in "php bin/magento deploy:mode:set developer" and nothing happens.
Should i be doing this through my SSH? or should it be from my file tree where i can enter in code? if so what file path would this go under for me to change developer mode.
Thank you.
No , you have done it correctly , but you are in wrong directory - /home/bitnami
this is /home/bitnami but you need to run this command from your magento2 root directory , where you have installed magento2 in that directory you need to run this command.
so after login to this /home/bitnami change directory by cd command and go to your root directory where you have installed magento2 and then run command