Put this in your root directory:

<?php
phpinfo();
?>

Save it as phpinfo.php and point your browser to it (this could be http://localhost/phpinfo.php)

  • More information (you can get much more information than just the version).
  • Example (random image):

Answer from Rinzwind on askubuntu.com
🌐
Quora
quora.com › How-do-you-check-if-XAMPP-is-installed-or-not-in-Ubuntu
How to check if XAMPP is installed or not in Ubuntu - Quora
Answer (1 of 2): You have to understand this first: 1) LAMP For LAMP setup, you have to install PHP, Apache and Mysql packages separately. In LAMP you don't get anything to manage your server in GUI way. For Ex: To start apache server you have to type command in terminal. To start apache : sudo...
🌐
1Gbits
1gbits.com › home page › blog › linux tutorials › how to check the mysql version?
How to check the MySQL version?
February 1, 2025 - There are several ways to check your XAMPP MySQL version. Go to your XAMPP installation folder and find the readme en.txt file inside.
🌐
Apache Friends
community.apachefriends.org › board index › xampp in english (language english only!) › xampp for windows
XAMPP Control Panel should show XAMPP version. - Apache Friends Support Forum
February 12, 2020 - You can also check the PHP version by executing php -v in the XAMPP shell. There are some files having the xampp version number too, like \xampp\install\.version or \xampp\readme_en.txt
🌐
Apache Friends
apachefriends.org › faq_linux.html
XAMPP FAQs for Linux
Checking integrity of files... Restoring configuration, log and htdocs files... Checking versions... Installed: XAMPP 1.4.2 Backup from: XAMPP 1.4.2 Restoring MySQL databases... Restoring MySQL user databases... Backup complete. Have fun! You may need to restart XAMPP to complete the restore.
Find elsewhere
🌐
Apache Friends
apachefriends.org › download.html
Download XAMPP
Download XAMPP for Windows, Linux, and OS X. Older versions of Solaris are also available.
🌐
DevArt
blog.devart.com › home › products › mysql tools › how to check mysql version
How to Check MySQL Version
August 31, 2025 - Another way to check your current MySQL version in XAMPP is as follows. Navigate to the readme_en.txt file, which can be found in your XAMPP installation folder.
🌐
It's FOSS
itsfoss.com › install-xampp-ubuntu
How to Install and Use XAMPP on Ubuntu
January 1, 2023 - The next page is to select components; by default, both options will be checked. Let them as it is and click on the forward button: Next, it will tell you that the XAMPP will be installed in to /opt/lampp directory: And in the next step, the setup wizard will notify you that the setup is ready and now you can start the installation process: ... Here, you will have to create a desktop file with .desktop extension. Here, I’m going with xampp.desktop: ... [Desktop Entry] Version=1.0 Type=Application Name=XAMPP Control Panel Exec=sudo /opt/lampp/manager-linux-x64.run Icon=/opt/lampp/htdocs/favicon.ico Terminal=false StartupNotify=false
🌐
VITUX
vitux.com › ubuntu-xampp
How to Install XAMPP on your Ubuntu 22.04 LTS System – VITUX
The commands and procedures described in this article have been run on an Ubuntu 22.04 LTS system. XAMPP for Ubuntu Linux is a free, open-source web server solution stack. It packages Apache, MySQL, PHP, and Perl, simplifying website and application development.
🌐
Power Plugins
power-plugins.com › home › developer guides › install and configure xampp on ubuntu
Install and configure XAMPP on Ubuntu - Power Plugins
July 8, 2023 - If you’re not sure which version to get, download “the middle one”. So in this case, we’ll grab the PHP 8.1 version. The download file name should look something like “xampp-linux-x64-8.1.17-0-installer.run” in your “Downloads” folder. ... Open a terminal and type the following so we can execute the installer. # Make the downloaded file executable chmod +x ~/Downloads/xampp-linux-*.run
🌐
PhoenixNAP
phoenixnap.com › home › kb › sysadmin › how to install xampp on ubuntu
How to Install XAMPP in Ubuntu {With Screenshots}
November 3, 2025 - In this tutorial, you will learn how to install XAMPP on Ubuntu, verify the installation, and uninstall the XAMPP package.
🌐
Linux Hint
linuxhint.com › install-xampp-ubuntu-20-04
How to Install XAMPP on Ubuntu 20.04 – Linux Hint
March 26, 2021 - The installer will mention the version of PHP(in our case, it 1s 8.0.12) it is bundled with. Old versions of PhP are also available with XAMPP. To view the complete list of various PHP versions, click here. Step 2. Once the installer is downloaded, open the folder containing the file in a terminal.
🌐
GeeksforGeeks
geeksforgeeks.org › linux-unix › how-to-install-xampp-in-linux
How to Install Xampp in Linux - GeeksforGeeks
July 23, 2025 - Here we need to select the components needs to be installed along with Xampp. There are different components like, ... If its your development machine check the developer files also, I am going with the default options that is checked both the files.
🌐
thelinuxvault
thelinuxvault.net › blog › how-to-install-xampp-on-ubuntu-linux
How to Install XAMPP on Ubuntu Linux: A Comprehensive Guide
XAMPP eliminates this hassle by providing a pre-configured, all-in-one solution. In this guide, we’ll walk you through installing XAMPP on Ubuntu Linux (20.04 LTS or later) step-by-step, with detailed explanations to ensure success. ... Ubuntu Version: 20.04 LTS, 22.04 LTS, or later (64-bit recommended).