Simple Steps to Install XAMPP on Your Linux System
Software Developer. Interested in finding innovative solutions to problems.
XAMPP is a popular PHP development environment. It stands for - Apache + MariaDB + PHP + Perl.
Before following this guide read https://www.apachefriends.org/faq_linux.html.
Follow these steps to setup xamp on linux:
- Download the latest version of
xamppfor GNU/Linux form here https://www.apachefriends.org/index.html. - Open terminal,
cdinto the directory where the installer is, give execute permission for the installer usingchmod +x [filename], and then run the installer giving root permissions (sudo). - The installer will install the binaries in
/opt/lamppdirectory. - Now run this command,
cd /opt/lampp; ls -all, this will list files in/opt/lamppdirectory. - Some important files and directories in
/opt/lampparexampp, this is the main binary file for starting and stopping the serveruninstall, this is the binary for uninstallingxamppmanager-linux-x64.run, this is used for running the graphical interface, just run this in root privilege.bin, this directory contains the binaries formysqlperlapache...configuration.ini, this file contains the setting for running the servers, if you want to change the configuration of the server, like port no, root directory, edit this file.
- Once, you start the servers, either using
xamppormanager-linux-x64.run(GUI), then go and open thelocalhost:80on browser.
Don't include this directory in the PATH variable, just make aliases for some specific program you want, or softlink them in the /usr/bin directory. Otherwise it may conflict with system software.




