I tried to install XAMPP to opt directory using this command:

sudo tar xvfz xampp-linux-1.8.0.tar.gz -C /opt

But, there is no folder there named /opt when I searched for this folder, there was a folder named /opt under /etc and another folder under /inode. So, where I can install XAMPP now - in the etc/opt/ or to create a directory named /opt in Home?

2 Answers 2


Just create opt folder and install in it

 sudo mkdir /opt

and then

 sudo tar xvfz xampp-linux-1.8.0.tar.gz -C /opt


It holds optional software and packages that you install that are not required for the system to run.

Opt is reserved for additional software you install; although, most providers don’t use it. This is kind of like ‘Program Files‘ for linux.






cek in here full tutorial

How To Install Xampp 1.8.1 in Linux Ubuntu 13.04 Raring Ringtail

How To Resolve Error PhpMyadmin Forbidden XAMPP


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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