Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.
jeggy@jeggy-12:~/Niðurtøkur$ 

I have tried

sudo /etc/init.d/apache2 stop

and

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

1 Answer 1

up vote 0 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

Your Answer

 
discard

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.