localhost not detected [SOLVED]

Problems with the Linux version of XAMPP, questions, comments, and anything related.

localhost not detected [SOLVED]

Postby bresis87 » 03. November 2011 00:44

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.
bresis87
 
Posts: 3
Joined: 03. November 2011 00:39
Operating System: Ubuntu 10.04

Re: localhost not detected

Postby JonB » 03. November 2011 14:52

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: localhost not detected

Postby bresis87 » 03. November 2011 22:52

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!
bresis87
 
Posts: 3
Joined: 03. November 2011 00:39
Operating System: Ubuntu 10.04

Re: localhost not detected

Postby bresis87 » 03. November 2011 23:00

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 :)
bresis87
 
Posts: 3
Joined: 03. November 2011 00:39
Operating System: Ubuntu 10.04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 5 guests