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 installed LAMPP with these instructions, but phpmadmin didn't work so i tried to uninstall and then install it again and it still doesn't work. When I'm trying to turn it on i get these errors.

jeggy@jeggy-12:~/Niðurtøkur$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
XAMPP: Another web server daemon is already running.
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Another FTP daemon is already running.
XAMPP for Linux started.

I have tried

sudo /etc/init.d/apache2 stop


sudo /usr/sbin/apache2ctl stop

And none of them work

When i go to localhost/phpmyadmin/ i get this error: enter image description here

EDIT: Now i get this error

jeggy@jeggy-12:~/Niðurtøkur/nspire$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
XAMPP: Starting Apache...
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

enter image description here

share|improve this question
"XAMPP: Another web server daemon is already running." Is there another web server running? If so ... kill it. – Rinzwind Jan 22 '13 at 14:55
i know that, but i don't know how to kill it. What i think it can be is that it was on while i deleted it and now when i installed it again it says another already is on – Jeggy Jan 22 '13 at 16:14
ps -ef|grep {whatyouwanttofind}, find the PID, and do a kill -9 {pid}. {whatyouwanttofind} is something like mysql or xampp. – Rinzwind Jan 22 '13 at 18:52
Ughh, please don't use XAMPP on Linux. We have a perfectly fine LAMPP stack in the package repositories: trivial, single-command installation, much better system integration (incl. better file access permission management), and completely automated (security) updates. – David Foerster Apr 19 '15 at 13:02
up vote -1 down vote accepted

After being googling for days i found this and it works great!

What i did was

sudo chmod 755 /opt/lampp/etc/my.cnf
sudo chmod 777 /opt/lampp/var/mysql -R
sudo /opt/lampp/lampp restart

and now it works

share|improve this answer
Making a whole directory structure writeable and executable to everyone is a terrible idea. – David Foerster Apr 19 '15 at 12:59

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.