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

Is there anyway to install XAMPP for all the user on Ubuntu 11.04 ? It would be great and I hope there are some ways. Because it's disgusting to log off every time to run XAMPP.

I'm new to Linux.

share|improve this question
up vote 3 down vote accepted

I'm not sure what your exact circumstances are but XAMPP is designed for one-person-development. It's a quick easy way to test sites locally. If you want a system wide server that all users can use, perhaps it's time to stop using it for something it wasn't designed, and is time to use a traditional LAMP stack instead.

sudo apt-get install lamp-server^

Note: The ^ on the end isn't a typo - it's how we denote tasks.

That should give you a very traditional LAMP setup which you can then customise as much as you like. For service configuration, I personally like the SliceHost articles (even though I'm not a customer there) as they cover most of the basics about getting Apache, PHP and MySQL playing happily and in a nice sane way.

share|improve this answer

You're doing something wrong if you need to logout each time to run a simple LAMPP server. It sounds like you've downloaded a bundle from a website, but in Ubuntu you usually use the package manager to install software.

To installa Apache, PHP, MySQL and phpMyAdmin install the packages apache2 libapache2-mod-php5 mysql-server phpmyadmin. This can be done by running the next command in a terminal

sudo apt-get install apache2 libapache2-mod-php5 mysql-server phpmyadmin

Have a look at How to avoid using sudo when working in /var/www? if you want to know some ways to tweak the filesystem permissions. If multiple users need access / edit to the same files, I suggest to setup a SSH or FTP server.

Setting a SSH server up is as easy as installing the openssh-server package. Create a new account on the machine, set a password for it and grant it access to the files in /var/www. For using SSHFS, see

share|improve this answer

You can easily install xampp with the shell script here is the shell script that will automatically download xampp, install it in prcise location and arrange the htdocs permission. Download and install shell script:

For more information Hope it helps you


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.