Hello. My site got hacked (the second in my signature). Both root and cpanel. I'm running a phpld 2.1 directory. Submit.php still loads, so the stuff is there apparently but index.php has been replaced or deleted. What's the best way to fix it and prevent further hacks like this? Thanks a lot,
Restore the content from backup. If you don't have a backup there's a lesson to be learned from this. Backup frequently!
What's to say it won't get hacked again? If the site was hacked previously, putting the potentially exploitable code back on the site is just insurance it will get hacked again. Look for new version of the application you're running.