Pages

Installing LAMP Stack with XAMPP and Initializing PHP Project in Linux

Most of the web applications are built with PHP. To built up and test before deploying it we need a web server, a database and PHP on our local machine and the term LAMP is used to refer these components in Linux Systems. We can install these components individually or via TASKSEL in Linux System. In this tutorial we are going to install LAMP using XAMPP application which is cross-platform application that install required components for the development of PHP Web Application.

Steps to install XAMPP :
1. Go to https://www.apachefriends.org/index.html and find XAMPP for Linux
2. Download Latest Version
3. Verify the downloaded package by comparing md5 checksums on your machine with md5 checksums by using the following commands:
  • cd ~/Downloads
  • md5sum xampp-linux-1.8.1.tar.gz
4. Extract the xampp package and copy it to /opt directory by entering following command
  • sudo tar xsvf xampp-inux-1.8.1.tar.gz -C /opt
5. Start XAMPP by using following command
  • /opt/lampp/lampp start
6. Test the installation by viewing localhost on your browser

The latest version of XAMPP comes with installer package. You need to run this with proper permission. It is very handy and easier than before to install LAMP Stack on the local computer. To install LAMP with new installer follow the following steps:

1. Download the XAMPP for Linux from https://www.apachefriends.org/index.html
2. Go to the directory that contains the downloaded file and run it
  • cd ~/Downloads
  • sudo ./xampp-linux-1.8.3-4-installer.run
3. New window will display and follow the instructions to install LAMP Stack

Initializing PHP Project
1. Create Project Directory in Home
2. Create link to project directory in the XAMPP webroot directory
  • sudo ln -s ~/project-directory /opt/lampp/htdocs/ 
3. Now you can access to your project using localhost/your-project on your browser

Unknown

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment