Page 1 of 1

XAMPP can't start

PostPosted: 27. February 2012 15:28
by Chaos96
I just installed ubuntu today, and I'm trying to get xampp installed. When I try to start lampp I get this stuff in terminal:

Code: Select all
Starting XAMPP for Linux 1.7.7...
/opt/lampp/share/lampp/phpstatus: line 4: /opt/lampp/bin/php: No such file or directory
XAMPP: Starting Apache with SSL ...
/opt/lampp/bin/apachectl: 102: /opt/lampp/bin/httpd: not found
XAMPP: Error 127! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/
XAMPP: Starting MySQL...
/opt/lampp/bin/mysql.server: 256: /opt/lampp/bin/my_print_defaults: not found
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP: /opt/lampp/lampp: line 333: /opt/lampp/sbin/proftpd: No such file or directory
XAMPP: Error 127! Couln't start ProFTPD!
XAMPP for Linux started.


It says it's unable to locate a bunch of files, but I've checked and they are there. I have no clue what's wrong.

Any help is appreciated.

Thanks.

Re: XAMPP can't start

PostPosted: 27. February 2012 16:14
by JonB
A. - did you install LAMPP as root?

B. - did you start LAMPP as root?

Code: Select all
su
password
/opt/lampp/lampp start

OR

Code: Select all
sudo /opt/lampp/lampp start


C. did you change ownership of the files in /opt/lampp???

8)

Re: XAMPP can't start

PostPosted: 27. February 2012 18:20
by Chaos96
JonB wrote:A. - did you install LAMPP as root?

B. - did you start LAMPP as root?

Code: Select all
su
password
/opt/lampp/lampp start

OR

Code: Select all
sudo /opt/lampp/lampp start


C. did you change ownership of the files in /opt/lampp???

8)


I just uninstalled, and reinstalled it as root (Wasn't sure if I had done that the first time), and it's still not working. I get the same errors as I had in the original post.

EDIT: I'm not at all familiar with ubuntu, so if you could further explain what you mean by "change ownership" that would be great.

Re: XAMPP can't start

PostPosted: 28. February 2012 22:30
by Chaos96
Today, I decided to reattempt running it, and it no longer has the httpd error. Now it has this error:

Code: Select all
XAMPP: Starting MySQL...
Warning: World-writable config file '/opt/lampp/etc/my.cnf' is ignored
XAMPP: Couldn't start MySQL!


Again, any help is appreciated.

Re: XAMPP can't start

PostPosted: 28. February 2012 22:47
by JonB
Looks like an SElinux issue

These are fixes that keep SE Linux intact -

XAMPP: Error 127

http://www.linuxquestions.org/questions ... rt-791248/

http://forums.fedoraforum.org/showthread.php?t=234459

If you are only doing development work, you could just relax SE Linux to 'reporting only' mode -

Try the first tip on this page:

http://www.crypt.gen.nz/selinux/disable_selinux.html


Good Luck
8)