I had a long day battling with installing a LAMP environment with Macports. I installed several things, had many problems, tried uninstalling them (not sure if I did), and on and on. Then, I tried doing the same thing in Homebrew. Same story. I then completely reinstalled Mavericks and did it all over again.
The problem is that I don't know what files should be there and which shouldn't. (I'm pretty much a beginner with this). If I knew, I guess I wouldn't have to reinstall the OS again. How can I completely restore it to what it was before I even opened the Terminal?
Here is what I have in the root directory:
And in my user directory:
(I can upload more images or ls outputs if needed)