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

How To Install XAMPP Stack On Ubuntu 16.04

314

To Install XAMPP Stack On Ubuntu 16.04

XAMPP is a free stack which contains PHP, Apache web server, MySQL database, and Perl. This framework installs Apache environment for developers easily. Installation of XAMPP Stack in Ubuntu is explained in this article.

Features

  • Regularly updated to the latest versions of Apache, MariaDB, PHP and Perl.
  • Supports other modules like OpenSSL, phpMyAdmin, MediaWiki, Joomla, WordPress etc.,
  • Tests the website designers and programmers work without Internet.
  • Secured package.
  • Allows creation and manipulation of databases in MariaDB and SQLite.


To Install XAMPP Stack

Before installing the package, create a directory.

user1@user1:~$ mkdir xampp
user1@user1:~$ cd xampp/
user1@user1:~/xampp$

Download the XAMPP package by using the wget command

user1@user1:~/xampp$ wget https://www.apachefriends.org/xampp-files/5.6.20/xampp-linux-x64-5.6.20-0-installer.run
--2016-07-13 16:26:51-- https://www.apachefriends.org/xampp-files/5.6.20/xampp-linux-x64-5.6.20-0-installer.run
Resolving www.apachefriends.org (www.apachefriends.org)... 107.22.247.161
Connecting to www.apachefriends.org (www.apachefriends.org)|107.22.247.161|:443... connected.
.
.
xampp-linux-x64-5.6 100%[===================> ] 129.19M 692KB/s in 4m 4s

2016-07-13 16:30:57 (543 KB/s) - ‘ xampp-linux-x64-5.6.20-0-installer.run’  saved [135465406/135465406]

Run the following command to make XAMPP execuatable.

user1@user1:~/xampp$ chmod +x xampp-linux-x64-5.6.20-0-installer.run

Install XAMPP stack as shown below.

user1@user1:~/xampp$ sudo ./xampp-linux-x64-5.6.20-0-installer.run
[sudo] password for user1:

Click Next
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-Click-Next
Select the required components and Click Next.
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-Select-components

Click Next to proceed further.
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-installation-directory
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-bitnami-xampp
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-ready-install

XAMPP installation starts now.
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-XAMPP-installation

Finally, click finish.
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-click-finish-complete-xampp-setup

XAMPP welcome screen appears.
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-XAMPP-welcome-screen
Click Manage servers to verify the list of currently running services.
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-Manage-servers

Launch the XAMPP dashboard either by clicking on the Go to application from XAMPP Welcome tab.

Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-application-XAMPP-Welcome-tab
Or

Open up your browser and navigate to http://localhost/ or http:/< IP_address> /
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-xampp-dashboard

Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-welcome

Access phpMyAdmin

phpMyAdmin is a graphical management tool for MySQL to create/delete/modify mysql databases through web browser.

Before accessing the phpMyAdmin, edit the httpd-xampp.conf file located in /opt/lampp/etc/extra/

user1@user1:~/xampp$ sudo vim /opt/lampp/etc/extra/httpd-xampp.conf
[sudo] password for user1:

Comment the following line

AllowOverride AuthConfig Limit
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

Then Add the following line.

AllowOverride AuthConfig Limit
# Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

Save and quit the file.
Restart XAMPP service.

user1@user1:~/xampp$ sudo /opt/lampp/lampp restart

Now access the phpMyAdmin, by triggering the phpMyAdmin Tab on the dashboard.

Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-access-phpMyAdmin

Then click PHPINFO() on the dashboard.
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-PHPINFO()

Security Issues of XAMPP

XAMPP cannot be used in production environment due to security issues. To overcome this the following security issues to be cleared.

  • The MySQL administrator (root) has no password.
  • The MySQL daemon is accessible via network.
  • ProFTPD uses the password “ lampp” for user “ daemon” .
  • PhpMyAdmin is accessible via network.
  • Examples are accessible via network.

Run the following command to overcome the security issues.

user1@user1:~/xampp$ sudo /opt/lampp/lampp security

XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes]
XAMPP: Password:
XAMPP: Password (again):
/opt/lampp/share/xampp/checkapache: line 41: /opt/lampp/htdocs/xampp/.htaccess: No such file or directory
cp: cannot stat ‘ /opt/lampp/htdocs/xampp/.htaccess’ : No such file or directory
cp: cannot stat ‘ /opt/lampp/htdocs/xampp/.htaccess’ : No such file or directory
chmod: cannot access ‘ /opt/lampp/htdocs/xampp/.htaccess’ : No such file or directory
chmod: cannot access ‘ /opt/lampp/htdocs/webalizer/.htaccess’ : No such file or directory
chmod: cannot access ‘ /opt/lampp/phpmyadmin/.htaccess’ : No such file or directory
XAMPP: Password protection active. Please use ' xampp'  as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that' s not recommended. Do you want me to turn it off? [yes]
XAMPP: Turned off.
XAMPP: Stopping MySQL...ok.
XAMPP: Starting MySQL...ok.
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes]
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin' s pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes]
XAMPP: Write the password somewhere down to make sure you won' t forget it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin' s authentication method.
XAMPP: The FTP password for user ' daemon'  is still set to ' xampp' .
XAMPP: Do you want to change the password? [yes]
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD...ok.
XAMPP: Done.

Open the browser and Click phpMyAdmin in the dashboard.

Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-Open-browser
Installation-XAMPP-Stack-PHP-Apache-web-server-MySQL-database-Perl-famework-installs-Apache-environment-Ubuntu-phpMyAdmin-dashboard

Tags:
jackson
Author: 

Comments ( 6 )

suhasinisuvi
sudo vim /opt/lampp/etc/extra/httpd-xampp.conf coomand not found ...its showing error
surajkolekar
sudo vim /opt/lampp/etc/extra/httpd-xampp.conf coomand not found plz resolve this issue
shanali
Hi i still get an error: Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. This setting can be configured in the file "httpd-xampp.conf". If you think this is a server error, please contact the webmaster. would be glad if u could help
jagannatharumugam
It seems that the correct location is /opt/lampp/ not /opt/lamp/
rulerl0rd
Thanks for the tutorial. But the file /opt/lamp/etc/extra/httpd-xampp.conf does not exist in my setup. Please advice.
jessiejay
Thank you for the helping hand. It took some time to find the right information that would help me install xampp. All the instruction I found on Youtube and other sites starting with downloading the file then jump to making XAMPP execuatable. or this command: chmod x xampp-linux-x64-5.6.20-0-installer.run. Needless to say I got error messages that the director could not be found. Peace
Add a comment

Frequently asked questions ( 5 )

Q

What is the Puropse of using the XAMPP stack?

A

XAMPP is a free stack which contains PHP, Apache web server, MySQL database, and Perl. This framework installs Apache environment for developers easily.

Q

How do I start XAMPP?

A

To start XAMPP simply call this command:

#sudo /opt/lampp/lampp start

Q

What do I do if the error message is "Cannot restore segment prot after reloc: Permission denied?"

A

Some Linux distributions have SELinux activated by default and this is preventing the successful start of XAMPP. You should disable it in order to start the XAMPP servers:

# sudo /usr/sbin/setenforce 0

Now XAMPP should work fine again.

Q

Does XAMPP include MySQL or MariaDB?

A

Since XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. The commands and tools are the same for both.

Q

Is XAMPP production ready?

A

XAMPP is not meant for production use but only for development environments. XAMPP is configured to be open as possible to allow the developer anything he/she wants. For development environments, this is great but in a production environment, it could be fatal.

Here a list of missing security in XAMPP:

The MySQL administrator (root) has no password.
The MySQL daemon is accessible via network.
ProFTPD uses the password "lampp" for user "daemon".
To fix most of the security weaknesses simply call the following command:

sudo /opt/lampp/lampp security

It starts a small security check and makes your XAMPP installation secure. For example this protects the XAMPP demo pages by a username ('lampp') and password combination.

Related Tutorials in How To Install XAMPP Stack On Ubuntu 16.04

Related Tutorials in How To Install XAMPP Stack On Ubuntu 16.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 Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
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 Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018

Related Forums in How To Install XAMPP Stack On Ubuntu 16.04

Related Forums in How To Install XAMPP Stack On Ubuntu 16.04

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
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
MySQL
rolando class=
Mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'gtid\_mode'': Table 'performance_schema.session_variables' doesn't exist (1146)
May 9, 2019
MySQL
isaiah class=
ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
Feb 8, 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

Related News in How To Install XAMPP Stack On Ubuntu 16.04

Related News in How To Install XAMPP Stack On Ubuntu 16.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
SQL sequel - worm rear its head after a decade
SQL sequel - worm rear its head after a decade
Feb 8, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
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 Jayce ?
What are the types of table used in IPtables

What are the various types of table used in IPtables and how to use that for my server security?

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.