I’m facing a serious problem with my Magento website, and I’d really appreciate any help or advice you can offer.
A few days ago, Liquidweb, my hosting deleted files from the main directory of my site (/home/wwwdos9/public_html/shopmami) instead of just clearing the cache files. The rm -rf command was mistakenly run on the main directory. Since then, the site has been throwing errors, specifically the following one: “Autoload error: Vendor autoload is not found. Please run ‘composer install’ under application root directory.”
Unfortunately, the available automated backup was overwritten just before I realized the issue, so I don’t have a recent backup of the site. The hosting support team has tried to help me, but we haven’t had much success.
Here are some additional details about the environment:
Magento (unsure of the exact version).
VPS server with outdated OS and WHM (without support for some modern tools like Composer 2).
I’ve tried reinstalling Composer and fixing the autoload issue, but I’m getting errors related to authentication keys for Composer repositories.
I don’t have any other available backups on the server, although there might be some stored locally or in other development environments.
My questions are:
Has anyone experienced something similar? Is there any way to restore or reconfigure Magento without a full backup?
What critical Magento files should be in the main directory for the site to function properly?
Any advice on how to deal with the Composer issue or how to install a functional version on an older server?
If I can’t restore the site, is there any way to reinstall or rebuild the site using the existing files and databases?
I’m open to any suggestions or recommendations. I’m really stuck at this point and would greatly appreciate your help.
Thanks in advance!