Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install xammpp on my Ubuntu 13.04. What I did was downloaded xampp from SourceForge, and then in the terminal I created /opt directory like this:

mkdir /opt
sudo tar xvfz xampp-linux-1.8.1.tar.gz -C/opt

and this error shows up:

tar (child): xampp-linux-1.8.1.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
share|improve this question
The /opt directory is already created by default so you should not have to create it. I can only assume that you were in your /home directory when you created the /opt directory and you are going to be in a world of hurt trying to get this done. Here is a good tutorial for doing what you want to do, following it slowly and read it carefully:… and another here:… – kingmilo Jun 2 '13 at 12:13
up vote -1 down vote accepted

Example your xampp files in Downloads directory.

cd Downloads

sudo -s

tar xvfz xampp-linux-1.8.1.tar.gz -C /opt

After install xampp you will get permission denied error. Therefore to fix this, run the following code in terminal.

sudo chmod 777 -R /opt/lampp/htdocs/

Run the following command in terminal to start lampp,

/opt/lampp/lampp start
share|improve this answer
I don't think it's a good idea to encourage 777 permissions. – janos Jun 2 '13 at 10:44
Perhaps this could have been a comment instead of an answer. You have made too many assumptions. – kingmilo Jun 2 '13 at 12:18

to install XAMPP

# wget
# chmod 755 xampp-linux*
# ./xampp-linux*
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.