3/3/2015 Install XAMPP Stack On 14.04 | Unixmen

Home About Us Advertising Sitemap Privacy Contact Us

Page Navigation search

Advertise Here

Unixmen Home News Today Linux Distributions Tutorials Knowledge Base Opensource News Android News Frequently Asked Question Ask Unixmen

Category Navigation 15155 views 5 likes 7 comments Posted July 29, 2014 Install XAMPP Stack On Ubuntu 14.04

by SK

Please share

XAMPP is a free, open source Apache distribution for GNU/ Linux, Windows, and Mac operating systems. It contains Apache , MySQL , PHP, and . The main goal of XAMPP is to build an easy to install Apache environment for developers. Unlike LAMP, and LEMP stacks, It makes the developers so easy to have all packages installed at once in a couple of minutes. XAMMP is acronym of X(Cross platform), MySQL, PHP, and Perl.

In this handy tutorial, let us setup XAMPP stack on a Ubuntu 14.04 LTS minimal server.

Install XAMPP

Download the latest version from the official download page. At the time writing this article, the latest version was 1.8.3. After downloading the XAMPP package, make it executable as shown below.

sudo chmod +x xampp‐linux‐1.8.3‐4‐installer.run

Now, install XAMPP stack as shown below.

sudo ./xampp‐linux‐1.8.3‐4‐installer.run

You’ll be asked a couple questions. Press Y to accept the defaults.

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ Welcome to the XAMPP Setup Wizard.

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited) https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 1/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

XAMPP Developer Files [Y/n] :y

Is the selection above correct? [Y/n]: y

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ Installation Directory

XAMPP will be installed to /opt/lampp Press [Enter] to continue :

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ Please wait while Setup installs XAMPP on your computer.

Installing 0% ______50% ______100% #########################################

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ Setup has finished installing XAMPP on your computer.

Starting/Stopping XAMPP Server

XAMPP will be installed in /opt/lampp directory. After installing XAMPP, you can start it using the following command.

sudo /opt/lampp/lampp start

Sample output:

Starting XAMPP for Linux 1.8.3‐4... XAMPP: Starting Apache...already running. XAMPP: Starting MySQL...ok. XAMPP: Starting ProFTPD...ok.

Like wise, you can stop the service as shown below.

sudo /opt/lampp/lampp stop

Sample output:

Stopping XAMPP for Linux 1.8.3‐4... XAMPP: Stopping Apache...ok. XAMPP: Stopping MySQL...ok. XAMPP: Stopping ProFTPD...ok.

Test XAMPP

To check if everything is OK, open up your web browser, and navigate to http://ip­address/xampp.

You may get the following error. This is because, the XAMPP test page is not accessible from the remote clients.

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 2/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

To resolve this error, edit file /opt/lampp/etc/extra/httpd­xampp.conf,

sudo nano /opt/lampp/etc/extra/httpd‐xampp.conf

Find the following line:

[...] Require local [...]

And, comment it out:

[...] #Require local [...]

For more details, refer the XAMPP forum.

Restart XAMPP service.

sudo /opt/lampp/lampp restart

Now, you’ll be able to access the XAMPP test page.

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 3/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

Access phpMyAdmin

phpMyAdmin is a graphical management tool for MySQL. Using this tool, you can create/delete/modify graphically via a web browser.

To access phpMyAdmin, navigate to http://ip­address/phpmyadmin.

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 4/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

Viewing Statistics of the XAMPP server

XAMPP comes with pre­installed webalizer application which is a fast, free web server log file analysis program. It displays the web server usage reports in HTML format with a web browser.

To access webalizer, go to URL: http://ip­address/webalizer.

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 5/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

#BLEEDBLUE Security Issues of XAMPP H​ over to Expand​ Donate to Unixmen Don’t attempt to use XAMPP in production environments. It is not meant for production use, but only for development purpose. The way XAMPP is configured is to be open as possible to allow the developers anything they want. For development environments this is great but in a production environment, it could be fatal. Unixmen.com

Here a liUstn ioxmf emn issing security in XAMPP: The MLyikSeQL administrator (root) has no password. The MySQL daemon is accessible via network. 54,272P preoopFleT liPkeD U nuixsmens. the password “lampp” for user “daemon”. PhpMyAdmin is accessible via network. Examples are accessible via network.

To fix the above security holes, enter the following command:

sudo /opt/lampp/lampp security

You’ll be asked a couple of questions to secure the XAMPP installation. Answer the questions accordingly.

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): 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. XcAoMnPtPa: c tM yuSsQ Lt oh aasd tvoe rrtuins eb ehfeorre I! !can check the security. XAMPP: MySQL has to run before I can check the security. XAMPP: MySQL has a root passwort set. Fine! :) 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.

That’s it. Now your XAMPP server is bit secure than before.

Cheers! https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 6/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen Reference Links:

XAMPP Home page

GoDaddy Rs 59 Hosting Reliable & Secure­Free 24/7 Support Free Phone Support, Setup & More

5 people like this Frequently Asked Questions, Linux Mint, Linux tutorials, Software, Ubuntu

apachemysqlPerlPHPXAMPP

SK

Senthilkumar, aka SK, is a Linux enthusiast, FOSS Supporter & Linux Consultant from Tamilnadu, India. A passionate and dynamic person, aims to deliver quality content to IT professionals. He loves very much to write and explore new things about Linux, Open Source, Computers and Internet.

Recommended for you apachemysqlFrequently Asked QuestionsLinux Mint

Linux Basics: How To Enable Apache UserDir In CentOS 7/RHEL 7

How To Install LAMP Server (Apache, MariaDB And PHP) On Fedora 21/20/19

Unixmen

Install LAMP Server F(oAllpowache,+ 1MariaDB, and PHP) On openSUSE 13.2/13.1

+ 7,840

Advestise here ?

Install LAMP Server (Apache, MySQL or MariaDB, PHP) On Ubuntu 14.10/14.04/13.10

HHVM – An Open Source PHP Virtual Machine Developed By Facebook

Unixmen Top Articles Install LAMP Server (Apache, MariaDB, PHP) On CentOS/RHEL/Scientific Linux 7

1 96193 Top Things To Do After Installing Ubuntu 14.04/13.10/13.04/12.10/12.04 2 92098 Top Things To Do After Installing Ubuntu 14.10/14.04/13.10/13.04/12.10/12.04 3 75510 How to Resolve no sound problem on Ubuntu 14.04, 13.10, 13.04 and Older versions 4 65532 How to Format USB Drive in the Terminal https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 7/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen 5 7 Comments unixmen  Login 48053 DNS Server Installation Step by Step Using CentOS 6.5/6.4/6.3 Sort by Newest  Recommend Share 6 ⤤ 46349 How To IJnostina ltlh Aen ddi sUcsues sUiobnu…ntu Tweak On Ubuntu 14.10/14.04/13.10/13.04/12.10/12.04 7 46274

Install LfrAivM 5P • S 7e mrovnethrs (agAopache, MySQL, PHP) On RHEL, CentOS, Scientific Linux 6.5/6.4 8 Installing XAMPP on my Ubuntu stack 14:04 am experiencing difficulty, thank you for sharing this it might help me. 44932 △ ▽ • Reply • Share › ‘Ifconfig’ C ommand Not Found In CentOS 7 Minimal Installation – ... 9 36893 linda­perfect • 7 months ago Install laNmexpus w 7i tfrho m1 Gcoomglme (a7n­Idnc ihn, 3U2b GuBn,t Bul a1c2k). 1b0y ,A 1S3U.S0 (42 0R1a3)r iTnagb leRtingtail & LinuxMint13 10 35926 is the best choice for Friendly Tablets for School Setup L1o △cal M▽ai•l RSeeprlyve• rS Uhasrein › g Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

Elmer • 7 months ago Hello Dear SK, could you please post here how to install Fog Project into Linux OS, it seem this cloning software is so nice, it has nice support for the new updates.. so i just disturb you and request for this my friend.. thank you for this tutorials my friend SK.. △ ▽ • Reply • Share ›

SK > Elmer • 7 months ago Never heard about Fog. Will try it soon Elmer. Thanks for the comment 1 △ ▽ • Reply • Share ›

Elmer > SK • 7 months ago once you have done, please show us your tutorials, this FOG Project is most commonly know Cloning software which is under Linux OS base.. △ ▽ • Reply • Share ›

Jim Parker > Elmer • 6 months ago Why do you hijack the discussion on how to install XAMPP with an irrelevant question instead of clicking the extremely obvious 'Ask Unixmen' link at the top of each page on the website? △ ▽ • Reply • Share ›

Elmer > Jim Parker • 6 months ago Jim Paker, don't be stupid my friend, all of us needs help to other master, even in a wrong way, anyway thank you for correcting me and suggesting me on which i need to go.. as you see Mr. SK replied me and i think my question to his is no problem.. maybe it's you has a problem.. hehehehehe.. △ ▽ • Reply • Share ›

✉ Subscribe d Add Disqus to your site  Privacy

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 8/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 9/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 10/11 3/3/2015 Install XAMPP Stack On Ubuntu 14.04 | Unixmen

Copyright © 2015 Unixmen, All Rights Reserved. Website Design and Maintained by Unixmen.

https://www.unixmen.com/install­xampp­stack­ubuntu­14­04/ 11/11