Installing LAMP


Tux and Foss adventures

Install Apache
————–

1. Open up the Terminal.

2. Copy/Paste the following line of code into Terminal and then press enter:

sudo apt-get install apache2

3. The Terminal will then ask you for you’re password, type it and then press enter.

Testing Apache
==============
To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1. Open up any web browser and then enter the following into the web address:

http://localhost/

Install PHP
———–

In this part we will install PHP 5.

1. Open up the Terminal.

Step 2. Copy/Paste the following line into Terminal and press enter:
sudo apt-get install php5 libapache2-mod-php5

Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:
sudo /etc/init.d/apache2 restart

Test PHP
========
To ensure there are no issues with PHP let’s…

View original post 266 more words