I haven't worked a lot with linux. I recently got a VPS at 1and1.com where I installed a LAMP server and then Litecommerce. I had to format it a few times because I keep losing access to SSH within a day.
At the moment, website still runs fine, and when I still could monitor RAM I wasn't busting the limit. I also made sure that the firewall wasn't blocking the ports.
Gradually FTP, HTTPS and PING has also stopped working.
I guess I'm doing something wrong with my LAMP setup. Do you guys have any Idea of what could be the cause, where should I look for errors? Also, is there a way I can gain access to my machine again without having to re-image it?
edit: I haven't solved the problem. I re-imaged the server with a CentOS minimal install. I don't know if the problem was coming from the control pannels (plesk) installed on the previous image I used. Same code runs fine now.