Going to be starting two online businesses soon.

1) I will be selling services

2) I will be selling products

What is the best way to go about this while still being legit and staying out of trouble.

I took a business degree but never learned the how to's on starting a business... Only learned how to manage/market a business.

Not really sure of the legalities of an online business and what I need to do to make it "Legal"