Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Accidentally did "chmod -777 /"
I accidentally gave the command chmod -777 to all folders on my server and with that all my sites that were in my droplet crashed and are “Error establishing a database connection”.
I’ve already researched on ways to reverse this but without success. What they advised would be to format my VPS. But I can’t lose my sites. Is there a way to backup all sites and restore after formatting the VPS?
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.×