• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install XAMPP on Ubuntu 22.04

  • 00:45 lsb_release -a
  • 00:57 sudo apt update
  • 02:18 cd /home/globalt/Downloads/
  • 02:31 chmod 755 xampp-linux-x64-8.2.12-0-installer.run
  • 02:46 sudo ./xampp-linux-x64-8.2.12-0-installer.run
  • 05:09 cd /opt/lampp
  • 05:23 cd htdocs
  • 05:41 sudo mkdir mysite
  • 05:49 cd mysite
  • 05:58 vim index.php
7890

To Install XAMPP On Ubuntu 22.04

Introduction

XAMPP is a free and open source web server solution stack that includes PHP, Apache web server, MySQL database, and Perl. This distribution is user-friendly and streamlined, making it ideal for developers to set up a local web server for testing and deploying websites efficiently.

Procedure

Step 1 : check the OS version of the system

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

Step 2: Check for update and install

root@linuxhelp:~# sudo apt update
Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease 
Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1,647 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [666 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,855 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [509 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [277 kB]       
Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2,132 kB]    
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [365 kB]   
Get:12 http://in.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [334 kB]              
Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [885 kB]           
Get:14 http://in.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2,188 kB]      
Get:15 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [618 kB]      
Get:16 http://in.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [375 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [722 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,108 kB]
Fetched 13.9 MB in 5s (2,974 kB/s)                                
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
339 packages can be upgraded. Run 'apt list --upgradable' to see them.

Step 3: Download XAMPP file from web browser snap

Step4: change the directory to XAMPP file location directory

root@linuxhelp:~# cd /home/globalt/Downloads/
root@linuxhelp:/home/globalt/Downloads# 

Step 5: Give executable permission for the XAMPP file

root@linuxhelp:/home/globalt/Downloads# chmod 755 xampp-linux-x64-8.2.12-0-installer.run
root@linuxhelp:/home/globalt/Downloads# 
root@linuxhelp:/home/globalt/Downloads# 
root@linuxhelp:/home/globalt/Downloads# ls
xampp-linux-x64-8.2.12-0-installer.run

Step 6: Exectute the script and run it by using the below command

root@linuxhelp:/home/globalt/Downloads# sudo ./xampp-linux-x64-8.2.12-0-installer.run
root@linuxhelp:/home/globalt/Downloads# 

Step 7: Change the directory to default XAMPP directory using the below command

root@linuxhelp:~# cd /opt/lampp
root@linuxhelp:/opt/lampp#  

Step 8: Change the directory to htdocs using the below command

root@linuxhelp:/opt/lampp# cd htdocs
root@linuxhelp:/opt/lampp#

Step 9 : Make new directory using the below command

root@linuxhelp:/opt/lampp/htdocs# sudo mkdir mysite
root@linuxhelp:/opt/lampp/htdocs#  

Step 10: Change the directory to mysite using the below command

root@linuxhelp:/opt/lampp/htdocs# cd mysite
root@linuxhelp:/opt/lampp/htdocs/mysite# 

Step 11 : Edit the index.php using the below command

root@linuxhelp:/opt/lampp/htdocs/mysite# vim index.php

Step 12: Add the below lines inside the index.php file

<?php
echo " XAMPP is running on ubuntu 22.04"
?>

Step 13: Finally browse the localhost/mysite. Xampp working properly snap2

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install XAMPP on Ubuntu 22.04.Your feedback is much welcome.

Tags:
michael
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

1. What is XAMPP?

A

XAMPP is a free, open-source web server package that includes Apache, MySQL, PHP, and Perl. It's designed for Windows, macOS, and Linux platforms.

Q

2. Why do we use XAMPP?

A

XAMPP simplifies the installation process of a web development environment on your local machine, making it easier to develop and test websites, applications, and databases.

Q

3. How do I configure my Apache virtual host?

A

You can create a new file called `httpd-vhosts.conf` in the `Apache\conf` directory and add your virtual host configuration settings.

Q

4. How do I access my MySQL database using XAMPP?

A

You can access your MySQL database by opening `phpMyAdmin` from the XAMPP Control Panel or by using the command-line tool `mysql -u root`.

Q

5. How do I enable/disable a PHP extension in XAMPP?

A

You can enable or disable PHP extensions by modifying the `php.ini` file and restarting the Apache service.

Related Tutorials in How to install XAMPP on Ubuntu 22.04

Related Tutorials in How to install XAMPP on Ubuntu 22.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install XAMPP on Ubuntu 22.04

Related Forums in How to install XAMPP on Ubuntu 22.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install XAMPP on Ubuntu 22.04

Related News in How to install XAMPP on Ubuntu 22.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.