Question

Restore the server with the button inside the droplet configuration and now the apache, mysql and ssh services do not start

One day I needed to restore the server due to a problem that occurred with the wordpress that I had installed that was disabled and needed a quick solution. I gave him the option to restore from the droplet control panel that he had from a few days previous. When the server was restarted (without writing any command) I noticed that the services did not start automatically and now every time I turn off or restart the server, I have to start them manually


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Accepted Answer

Assuming you’re on Ubuntu,

systemctl enable apache2 mysql

Link for references. https://linuxconfig.org/how-to-start-service-on-boot-on-ubuntu-20-04

Ps: MySQL is dead, I highly recommend using mariadb instead. All MySQL commands work and databases but you should do a dump just to be safe.

it works, comment inside fstab, becouse i make a swap memory before, after i commented its works fine. Thkx

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more