How to set up xampp on linux
How to set up xampp on linux.
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 cd into the
/opt/lamppdirectory and dols -alli.e.cd /opt/lampp; ls -all - 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
PATHvariable, just make aliases for some specific program you want, or softlink them in the/usr/bindirectory.
This post is licensed under
CC BY 4.0
by the author.