How to know whether I have LAMP or XAMPP installed in my Ubuntu?

Viewed 28476

I am currently working in PHP in my localhost. I have php version 5.5.9-1, apache2 version 2.4.7, and Mysql Ver 14.14 in my Ubuntu 14.04. But how to check whether I am using LAMP or XAMPP?

I tried typing "lamp" and "xampp" in terminal. But it shows "command not found". Should I come to the conclusion that these things(apache, mysql and php) were installed seperately?

4 Answers

In my case I have installed XAMPP for Linux (LAMPP) in Ubuntu 18.10

How can you know it?

  1. Try to go to /opt/lampp
  2. If you can, it means Xampp for Linux it's installed, but if you want to know the version, in the same path of step 1, put in your command line ./xampp status You will know XAMPP for Linux version and Apache, MySQL and ProFTPD status (running or not).

Know PHP version

cd /opt/lampp/bin
./php -v

Know MySQL (MariaDB) version

cd /opt/lampp/bin
./mysql --version

Know Apache version

cd /opt/lampp/bin
./apachectl -v

I hope helps somebody

./xampp status image

Related