Please have a look at the offical Ubuntu Server Guide for the release you are using. You can find the guide for the latest released LTS version here. You will find detailed explanations in the Web Servers chapter and examples in the LAMP Applications chapter.

Notable questions:

history | show excerpt | excerpt history