Page 1 of 1

XAMPP 8.1.0 Install on UBUNTU

PostPosted: 18. July 2012 03:49
by Peter M
Hi I am trying to install XAMPP on a Linux box.
The download seems to work OK but when I execute the extract command It seems I can't find the xaamp folder or files

See below

simon@dmrus-simon:~$ pwd
/home/simon
simon@dmrus-simon:~$ tar xvfz xampp-linux-1.8.0.tar.gz -C /opt
tar (child): xampp-linux-1.8.0.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


simon@dmrus-simon:~$ su
Password:
root@dmrus-simon:/home/simon# tar xvfz xampp-linux-1.8.0.tar.gz -C /opt
tar (child): xampp-linux-1.8.0.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
root@dmrus-simon:/home/simon#


the XAMPP Folder is in simon/Downloads

but the above instruction says "no such file or Directory"

Help please

Re: XAMPP 8.1.0 Install on UBUNTU

PostPosted: 18. July 2012 05:09
by JonB
the XAMPP Folder is in simon/Downloads

but the above instruction says "no such file or Directory"


and the command returned the correct information -

That was because your 'pwd' was /home/simon at the time you issued the command and the tarball was in /home/simon/Downloads
Code: Select all
root@dmrus-simon:/home/simon# 

-----------------------------^^^ tells you the folder you are working in.

Fix - this should work for you (as root)

Code: Select all
tar xvfz /home/simon/Downloads/xampp-linux-1.8.0.tar.gz -C /opt


Downloads/xampp-linux-1.8.0.tar.gz
and
./Downloads/xampp-linux-1.8.0.tar.gz
would also work from that location in the filesystem. Its always best to use the 'absolute path' if you are unsure.

You probably should learn the Linux command line, you will need it to mange/fix things in 'server mode'.

Good Luck
8)