Now I'm going to give some tutorial to set up LAMP Server and to use it. Some people are confused to use this local server at UBuntu/Debian. Other linux will catch up later.
Read more here
You need a system that has a minimum requirement of Debian/Ubuntu version of linux with at least 256MB of RAM available. Anything less than this minimum ram will cause lot of problems since we are running a server along especially mysql and webmin requires lot of RAM to run properly. Mysql will give you this nasty error “cannot connect to mysql.sock” if you dont have enough memory in your server. But I recommend you to have at least 512 of RAM available for more better performance.