- Newest
- Most votes
- Most comments
I think your Lightsail instance is beyond saving :-( You need to chown
the files and directories back to make the system have a chance of being usable, but as you've found there's no way of becoming root to do that.
Your best option here may be to snapshot your Lightsail instance, then create an EBS volume from the snapshot, and attach that volume to an EC2 instance. You could then at least recover the WordPress data. See the section Troubleshoot or recover data from a Lightsail snapshot with an Amazon EC2 instance in https://repost.aws/knowledge-center/lightsail-export-linux-instance-ec2
Hi,
You might want to check this document https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-create-an-instance-root-volume-snapshot.html, to create a snapshot for your root volume and create a disk from that snapshot and attach it to an instance. You might be able to access your wordpress data.
Hi, I want to give an update on my situation. Lets start with the fact that i managed to download the files via ssh :) . I think i have everything i need (wordpress files plus database files). Now I have to make a new lightsail instance and upload the old files. Now i have some options.
Option number 1 is to delete the wordpress file and upload the old one. And do the same for the database. Idk if this will be effective but i can try it. Second option is to import the database to the phpmyadmin. And upload only the necessary files like wp-themes,wp-plugins and all that.
Let me know wich one of this sounds like a better idea.
Lastly i want to say that i have been waiting for amazon to give me access to 20 lightsail instances. Right now I only have access to 2 even though in the quota section of AWS it clearly says i have acces to 20. I do not want to remove the damaged one in case I need a file or something.
Relevant content
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 7 months ago
Am having a real hard time following the instructions. Can you plz provide a vedeo or something helpful. I am really lost and I need to save this.
Here is the video that accompanies that knowledge article https://m.youtube.com/watch?v=BIIKGjJk-Bw