Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

How to install Xampp on Linux

How to install Xampp on Linux

In this tutorial we are going to learn Installing latest version of Xampp on Linux , setting Linux htdocs folder permissions issue, How to add a Linux environment variable for PHP, Installing Composer “A Dependency Manager for PHP”.

XAMPP is a completely free, easy to install Apache distribution containing MySQL / MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use. Best part is Xampp is cross-platform tool available for Windows , Mac and Linux.

We are going to break this tutorial in several parts to make this tutorial easy to use :

Part 1 : Xampp Installation

visit https://www.apachefriends.org to download latest version of xampp. like I have downloaded xampp in /home/sanjay/download directory

Now Open Terminal / Konsole and using cd command move
to /home/sanjay/download

Now run command
sudo chmod 755 xampp-linux-*-installer.run
sudo ./xampp-linux-*-installer.run

Part 2 :  Fixing Linux htdocs folder permissions issue

Now Open Terminal / Konsole and run commands given below

sudo chown -R daemon:daemon /opt/lampp/htdoc
sudo chmod 777 -R /opt/lampp/htdocs

Part 3 : Setting PHP environment variable

Method 1 (use when method 2 fails) :
sudo nano /etc/environment
add
:/opt/lampp/bin/php
in last and save and run
sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

Method 2 (Recommended ) :

For PHP
export PATH=$PATH:/opt/lampp/bin/php
sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

For MySQL

export PATH=$PATH:/opt/lampp/bin/mysql
sudo ln -s /opt/lampp/bin/mysql /usr/local/bin/mysql

Part 4 : Installing Composer

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

Part 5: Xampp Control Panel GUI

sudo nano /usr/share/applications/firefox-developer.desktop
and paste

[Desktop Entry]
Encoding=UTF-8
Exec=opt/lampp/manager-linux-x64.run
Icon=opt/lampp/htdocs/favicon.ico
Type=Application
Terminal=false
Comment=XAMPP Control Panel
Name=XAMPP Control Panel
GenericName=XAMPP Control Panel
StartupNotify=false
Category=Development;System;

then press CTRL+X and type y and Press Enter.

Xampp Common commands

sudo /opt/lampp/lampp start (Will Start Xammp)
sudo /opt/lampp/lampp stop (will Stop Xampp)
sudo /opt/lampp/lampp restart (will restart Xampp)

Xampp configurable files

The main XAMPP configuration files are located as follows:

Apache configuration file: /opt/lampp/etc/httpd.conf, /opt/lampp/etc/extra/httpd-xampp.conf
PHP configuration file: /opt/lampp/etc/php.ini
MySQL configuration file: /opt/lampp/etc/my.cnf
ProFTPD configuration file: /opt/lampp/etc/proftpd.conf

If you still facing any problem then please comment your problem , I will try to fix those problems.

Installing Xampp 1.8 on 32 bit and 64 bit linux and solve phpmyadmin Access error

Installing Xampp 1.8 on 32 bit and 64 bit linux and solve phpmyadmin Access error

What is Xammp ?
XAMMP is now become number one choice for web developer for its ease of use and stability. XAMPP is an easy way  to install Apache distribution containing MySQL, PHP and Perl.
In this tutorial I am going to share how to install Xampp 1.8 on 32 bit and 64 bit linux and solve phpmyadmin Access error. In previous tutorial I already shared xampp 1.7 installation guide .First Download Xampp 1.8 from apachefriends and copy it to home directory and rename it to xampp1.8.tar.gz. If you run 64 bit OS install Wine or ia32-libs otherwise you will not able to enjoy xampp as it is 32 bit application.

Installation guide of xampp 1.8 :

Run terminal and use following command
sudo tar xvfz xampp1.8.tar.gz -C /opt
if fails use
su tar xvfz xampp1.8.tar.gz -C /opt
Now xampp install successfully in /opt/ folder. we can start xampp by simply by command
sudo /opt/lampp/lampp start

Xampp 1.8 installation

launch the url in firefox localhost but when launching phpmyadmin you will get following error.

xampp 1.8 phpmyadmin error

Don’t worry We will soon solve this error . But first we have to make /opt/htdocs/ writable so we can easy create folders and files there by following command
sudo chmod 777 -R /opt/lampp/htdocs
Now  we have to solve phpmyadmin Access error by simply editing httd-xampp.conf file.
Open terminal and run command
sudo kate
or sudo following by your favorite editor like gedit to open as root.
and open file httd-xampp.conf located at /opt/lampp/etc/extra/httd-xampp.conf
Look for following lines
<Directory “/opt/lampp/phpmyadmin”>
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
</Directory>
and replace with following
<Directory “/opt/lampp/phpmyadmin”>
AllowOverride AuthConfig Limit
Order allow,deny
Allow from all
Require all granted
</Directory>

After this , you will not able to open phpmyadmin same error will displayed on browser.
We have to restart Xampp in order to work. use following command
sudo /opt/lampp/lampp stop 
to stop xampp and
sudo /opt/lampp/lampp start
to start xampp 1.8

or you can use simgle command to restart
sudo /opt/lampp/lampp restart

Open localhost/phpmyadmin , after changing default language to english
it will look like

PHPMYADMIN xampp 1.8

Now watch complete video tutorial Install laravel,lumen on xampp only on Linux

This tutorial is tested on Linux Mint KDE 14 Nadia.
@https://plus.google.com/111215709458999120537

Install XAMPP on 32/64 bit Linux Distro

Install XAMPP on 32/64 bit Linux Distro

Today Linux has become number one choice in Open Source world whether it is Desktop experience, programming, server or Web Development Linux has no match. Its Secure , fast and comes in many flavor.
In this tutorial we will focus how to install Xampp on linux 64 bit OS. Earlier day the Linux version of XAMPP called as LAMPP. But it comes as XAMPP with more improvements.
For Installing and running XAMPP on 64 bit linux distro install wine through package manager , it will install 32 bit packages so you can run  32 bit application also. Please note that  XAMPP is till now a 32 bit application. After installing Wine Download XAMPP  latest version from
After downloding Xampp copy it to home folder, and rename it to xampp.tar.gz
Note : Some distro allows root login such as PCLinuxOS, OpenSUSE so if your distro allows root login then logged as root. Some distro doesn’t allow root login like Ubuntu, Kubuntu … don’t worry login as default.
Go to a Linux shell and login as the system administrator root
su tar xvfz xampp.tar.gz -C /opt
or if fail try
sudo tar xvfz xampp.tar.gz -C /opt
it will ask password , use your root password and hit enter.
To start XAMPP simply call this command:
sudo /opt/lampp/lampp start
or
su  /opt/lampp/lampp start
You should now see something like this on your screen:
Starting XAMPP 1.7.7…
LAMPP: Starting Apache…
LAMPP: Starting MySQL…
LAMPP started.
Ready. Apache and MySQL are running.
Just type in the following URL at your favourite web browser:
http://localhost
Now you should see the start page of XAMPP containing some links to check the status of the installed software and some small programming examples.
xampp 64 bit linux
Xampp on Kubuntu 12.04 64 bit
Now watch complete video tutorial Install laravel,lumen on xampp only on Linux  Some Usedful commands to remeber while playing with xampp.
startStarts XAMPP.
stopStops XAMPP.
restartStops and starts XAMPP.

This tutorial tested on Ubuntu, Linux Mint ,OpenSUSE and Fedora