MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to install and Configure XAMPP on Ubuntu?

Steps to install XAMPP on Ubuntu Server:

1. Login to Ubuntu machine using any ssh client (like putty) or it’s great if you have a direct access to the Ubuntu machine
2. Run the below given command:
wget https://www.apachefriends.org/xampp-files/7.4.1/xampp-linux-x64-7.4.1-1-installer.run
3. Run: sudo -s
4. Run: chmod 755 xampp-linux-x64-7.4.1-1-installer.run (This will give the executable permission to the installer file that you downloaded in step 2)
5. Run: sudo ./xampp-linux-x64-7.4.1-1-installer.run (This will start the installation)

Screen captured at the time of installation:

Terminal running sudo ./xampp-linux-x64-7.4.1-1-installer.run, finishing XAMPP install to /opt/lampp

6. Run/ Start XAMPP server
sudo /opt/lampp/lampp start
7. Now you can access the server from the browser of any machine if the IP of the Ubuntu machine is static

Screen captured while accessing the XAMPP dashboard using it’s IP addess

Browser showing Welcome to XAMPP for Linux dashboard accessed via the server IP address

8. Let’s check the phpmyadmin console:

PhpMyAdmin page showing Access forbidden Error 403 from the XAMPP security concept

9. Let’s solve the phpmyadmin access forbidden problem now
Run vi /opt/lampp/etc/extra/httpd-xampp.conf

Httpd-xampp.conf in vi with phpmyadmin directory changed to Require all granted

10. Restart XAMPP: sudo /opt/lampp/lampp restart
11. Now reload the phpmyadmin screen in the browser

PhpMyAdmin home page now accessible but opened without asking for a password

12. Run: sudo /opt/lampp/xampp security

Terminal running sudo /opt/lampp/xampp security to set MySQL and phpMyAdmin passwords

13. Restart XAMPP: sudo /opt/lampp/lampp restart
14. Let’s access phpmyadmin again and see if it is asking for the password:

PhpMyAdmin login page asking for username and password after securing XAMPP
PhpMyAdmin login form filled with username root and password, Go button highlighted
PhpMyAdmin dashboard after successful root login with password on XAMPP

Thanks for reading, I hope you enjoyed this article.



Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Managing MariaDB Root Password and Connection Behavior in XAMPP (Ubuntu)

☁️ Introduction When working with MariaDB/MySQL inside XAMPP on Ubuntu, many developers face confusing issues related to root password behavior, localhost vs 127.0.0.1 access, and authentication plugins.This…

Read More

I am facing a MySQL error when I want to login into a database in Ubuntu 20.04.2 LTS

I am facing above issue from two days so I searched a lot for this. but every time I failed, I started checking from another ubuntu machines,…

Read More

Ubuntu or Linux Error: Unable to access XAMPP MySQL from /opt/lampp/bin/mysql

Here’s the complete article on the solution with baby steps:How to link php from XAMPP installation to use php command from user or any other directory in…

Read More

How to link MySQL from XAMPP (/opt/lampp/bin) to use mysql command from any directory in Ubuntu or Linux

Assumption: I assume that you have already installed XAMPP in your Ubuntu OR Linux machine.If not, then you may follow this link to do so: https://www.devopsschool.com/blog/installing-xampp-7-4-xxx-on-ubuntu/ and https://www.devopsschool.com/blog/how-to-link-php-from-xampp-installation-to-use-php-command-from-user-or-any-other-directory-in-ubuntu-or-linux/…

Read More

How to link php from XAMPP installation to use php command from user or any other directory in Ubuntu or Linux

Assumption:I assume that you have already installed XAMPP in your Ubuntu OR Linux machine.If not, then you may follow this link to do so: https://www.devopsschool.com/blog/installing-xampp-7-4-xxx-on-ubuntu/ How I…

Read More

Xampp : Starting Apache …fail : Ubuntu Server Error

i installed xampp in my ubuntu server in virtual box and when i am running below command. then showing Starting Apache …fail. sudo /opt/lampp/lampp start Error :…

Read More