Install XAMPP On Ubuntu

XAMPP and UbuntuIf you want to use Apache, MySQL, and PHP/Perl as training materials for made a website or for exercise linux server, you can use XAMPP. XAMPP package is a web server application that is free and cross platform. To be able to install XAMPP in Ubuntu, you should turn off Apache service and MySQL database server. If the package of Apache and MySQL already installed, you can turn off first with the following command:

$ sudo sudo /etc/init.d/apache2 stop
$ sudo /etc/init.d/mysql stop

Download XAMPP for Linux. Once you’ve finished download XAMPP, login as root and navigate to the directory where you save XAMPP file. Extract that file to the /opt directory.

$ sudo su
# tar xzvf xampp-file-name.tar.gz -C /opt

Once finished, you can now run XAMPP service using the following command:

# /opt/lampp/lampp start

So that XAMPP service can be run automatically, you can copy XAMPP service files to the directory /etc/init.d. Then create a symbolic link to a file service to make XAMPP service automatically running. To ensure XAMPP running well, you can check them with a way, open the web browser and type the local host address 127.0.0.1 or http://localhost.

XAMPP for Linux

Leave a Reply