Open a terminal. If you are using the desktop version of Ubuntu, press the <CTRL><ALT><T> combination, or access the terminal from the menu at the top left. Using Ubuntu server edition, you start out in the terminal.
Ubuntu is a popular Linux based operating system. Linux is also a popular platform for Web hosting. In order to host websites and other Web applications on Ubuntu, you need to install software, such as LAMP (Linux-Apache-MySQL-PHP) onto your system. Whether you plan to use this Ubuntu installed computer for development and testing, or for production hosting, the installation is the same.
Type the following command into the terminal:
sudo apt-get install lamp-server^
The carat is not a typo.
Press the "Enter" key to confirm you want to install the listed packages.
Enter and confirm the new MySQL password when you are prompted.
Confirm the successful installation of LAMP by pointing your Web browser to "http://localhost/" -- The page says, "It works!"
- Photo Credit Hemera Technologies/AbleStock.com/Getty Images