By vige1000
Hi guys, I followed this guide (https://marketplace.digitalocean.com/apps/magento-2-open-source-1) to install Magento 2 one click. The mysql password is stored in /root/.digitalocean_password after installation. But every time the droplet is restarted the password changes. So I have to change it in the applications, eg. /var/www/html/app/etc/env.php for magento database.
Does anyone know, how to prevent mysql password change?
Best regards, Vitali
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @vige1000
When the server 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
Thanks for reporting this. We will have a look and see if we can optimize the process and prevent any possible issues.
Regards, Alex
Hey there - this should be resolved for any new users of this app, just tested out the most recent submission from the vendor. Thanks for bearing with us!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.