Thursday, October 25, 2012

Install XAMPP 1.8.1 FROM PPA Under Ubuntu 12.10/12.04/Linux Mint 13



In this tutorial we will see how to install XAMPP 1.8.1 from PPA under Ubuntu/Linux Mint. The latest version of XAMPP web server for Linux includes the following updates:


  • Apache 2.4.3
  • MySQL 5.5.27
  • PHP 5.4.7
  • phpMyAdmin 3.5.2.2
If you want to install manually, you can refer to this page. The PPA given below is compatible with the following Linux distributions:

  • Ubuntu 12.10/12.04/11.10
  • Linux Mint 13/12
 XAMPP 1.8.1 Installation

Open the terminal and install XAMPP 1.8.1 with these commands:

sudo add-apt-repository ppa:upubuntu-com/xampp
sudo apt-get update
sudo apt-get install xampp

You can now start XAMPP with this command:

sudo /opt/lampp/lampp start

Or use Unity dash and search for XAMPP Control Panel and start the server:


You can now access the XAMPP web interface at this link (replace localhost with your server IP address if needed):

http://localhost/xampp/


Troubleshooting

If you get this error when accessing phpMyAdmin:

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".


You can fix it with the following instructions:

- Open the terminal and run this command:

sudo gedit /opt/lampp/etc/extra/httpd-xampp.conf

- Replace now these lines:


  AllowOverride AuthConfig Limit
  Order allow,deny
  Allow from all



with these lines:


  AllowOverride AuthConfig Limit
  Order allow,deny
  Allow from all
  Require all granted



- Save your file and exit, then restart XAMPP with this command:

 sudo /opt/lampp/lampp restart

No comments:

Post a Comment