How to Install XAMPP in Linux: 6 Steps

Table of contents:

How to Install XAMPP in Linux: 6 Steps
How to Install XAMPP in Linux: 6 Steps
Anonim

XAMPP is a free web server program, which allows you to run scripts written in different languages (Perl, Apache, PHP). The installation procedure is not complex and this tutorial shows you how to do it in Linux.

Steps

Install XAMPP on Linux Step 1
Install XAMPP on Linux Step 1

Step 1. Regardless of the Linux version or distribution, the installation procedure is performed from the 'Terminal' window

Type the following command to proceed with the download of XAMPP:

  • Step 2.

    wget

    Install XAMPP on Linux Step 2
    Install XAMPP on Linux Step 2
    Install XAMPP on Linux Step 3
    Install XAMPP on Linux Step 3

    Step 1. Now proceed with the actual installation through the 'tar' command:

  • Step 2.

    sudo tar xvfz xampp-linux-1.7.3a.tar.gz -C / opt

    Install XAMPP on Linux Step 4
    Install XAMPP on Linux Step 4
    Install XAMPP on Linux Step 5
    Install XAMPP on Linux Step 5

    Step 1. When the installation is finished, you can start the XAMPP service using this command:

  • Step 2.

    / opt / lampp / lampp start

    Advice

    • To set a login password for MySQL, the XAMPP configuration page and the FTP server, type the following command and follow the instructions that appear:

      '/ opt / lampp / lampp security'

    • You can restart XAMPP using the 'restart' parameter (without quotes):

      '/ opt / lampp / lampp restart'

    • You can start or stop the Apache server via SSL, using its parameters:

      • '/ opt / lampp / lampp stopssl - Stop'
      • '/ opt / lampp / lampp startssl - Start'
    • To start XAMPP, add the 'start' parameter (without quotes):

      '/ opt / lampp / lampp start'

    • To stop it, add the 'stop' parameter (without quotes):

      '/ opt / lampp / lampp stop'

Recommended: