Question

Server keeps asking for magento domain after reboot

Posted May 27, 2020 120 views
ApacheUbuntu 18.04

I created a droplet with the Magento 2 Open Source image (LAMP server with Magento in Ubuntu 18.04), follow the configuration directions until the end, and got the Magento droplet up and running. The problem comes when I reboot the server, when I log in, it asks me to fill in the domain and everything else in the Magento configuration. Is there a step I’m missing?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello, @jjee

When the droplet is rebooted and you login again the Magento script is executed again and will change the password.

If you’ve finished the Magento installation and don’t want to have the install script running on your next login you can edit the .bashrc file and remove the last two lines from it:

chmod +x /opt/digitalocean/magento_setup.sh
/opt/digitalocean/magento_setup.sh

then execute:

source ~/.bashrc

The next time you access the droplet, the install script will not be executed. However if you reboot the droplet the install script will be executed again and the two lines will be added back in the .bashrc file

This has been reported to the Eltrino team which is managing the Magento one-click droplet in the marketplace and they’re aware of this. They will release a new version in the near future and this will be sorted.

Hope this helps!

Regards,
Alex

Submit an Answer