Page 1 of 1

localhost not detected [SOLVED]

PostPosted: 03. November 2011 00:44
by bresis87
I just installed the Xampp package 1.7.7 and after executing the command ./lampp start, everything seems to work fine but if I go to firefox and type: http://localhost I get this:
It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Instead of what it should be.

Re: localhost not detected

PostPosted: 03. November 2011 14:52
by JonB
OK -
Two things -

1st, lets see if Apache is really running

using a root login, su or sudo
/opt/lampp/lampp status



2nd -
If Apache is not running, try using the full syntax (the command must be issued in a root context)

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


(note what is returned in the term window)
See if Apache is running right now.

Good Luck
8)

Re: localhost not detected

PostPosted: 03. November 2011 22:52
by bresis87
I have done what you say and you are right, the problem is that neither Apache nor MySQL are running. This is the output of the command "./lampp status":
Version: XAMPP for Linux 1.7.7
Apache is not running.
MySQL is not running.
ProFTPD is running.
I have run the command as a superuser. The problem seems to be that there is another webserver deamon running, this is the output of the command "./lampp start":
Starting XAMPP for Linux 1.7.7...
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.

Any idea?

Thanks!

Re: localhost not detected

PostPosted: 03. November 2011 23:00
by bresis87
Problem solved. Aparrently MySQL and Apache2 are running since the computer booted. The solution is to stop them before lauching the "lampp start" command:
sudo /etc/init.d/mysql stop
sudo /etc/init.d/apache2 stop
And then we are free to go :)