Configuring PHP environment under Linux XAMPP basic tutorial

  
 

XAMPP is an easy to install Apache distribution that includes MySQL, PHP
, and Perl. XAMPP is really easy to install and use: just download, unzip, and launch.

XAMPP is free

We don't like overpriced commercial software, so we try to prove that free software can perform well with XAMPP.

About nonsense, look at the installation process, refer to here

You can download it at sorceforge.net

Installation

Please enter the following command after downloading:

Enter the Linux shell and log in as the system administrator:

su

Release the downloaded compressed file to /opt:

tar xvfz xampp-linux -1.6.tar.gz -C /opt

Warning: XAMPP can only be installed using the above command. Do not use any Microsoft Windows
tool to release the compressed file, which is useless.

Warning 2: When you use this command, the existing legacy XAMPP will be overwritten.

This is the end. XAMPP is installed in the /opt/lampp directory.

Running

Start XAMPP with the following command:

/opt/lampp/lampp start

You should be able to see something like this on the screen Tips:

Starting XAMPP 1.6…

LAMPP: Starting Apache…

LAMPP: Starting MySQL…

LAMPP started.

Ok. Apache and MySQL are running.

Test

Okay, this is simple, but how do you detect if all components are working properly? Just enter the following link in your browser:

http://localhost

You should now see links with some status checking the status of installed software and The XAMPP start page for some sample programs.

You can also write a text.php to test it yourself, for example, in text.php:

print(”hello world!”)

Copyright © Windows knowledge All Rights Reserved