localhost

Emil Payne EHSPayne at angelwoodpines.org
Fri Jan 8 00:58:31 UTC 2010


Center posting!  =P

Andrew Kane wrote:


> 
>      It sounds as if your webserver (apache2 most likely) is not
> running or not configured properly.
> 
>      What procedure did you use in installing XAMPP?

Installation in 4 Steps

* Step 1: Download

  XAMPP Linux 1.7.3

* Step 2: Installation

After downloading simply type in the following commands:

   1. Go to a Linux shell and login as the system administrator root:

      su

   2. Extract the downloaded archive file to /opt:

      tar xvfz xampp-linux-1.7.3.tar.gz -C /opt

That's all. XAMPP is now installed below the /opt/lampp directory.

* Step 3: Start

To start XAMPP simply call this command:

/opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.7.3...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.

Ready. Apache and MySQL are running.

* Step 4: Test

OK, that was easy but how can you check that everything really works?
Just type in the following URL at your favourite web browser:

http://localhost

Now you should see the start page of XAMPP containing some links to
check the status of the installed software and some small programming
examples.

Now I do NOT get the start page, just a 404 error.

>
>      What happens if you do "apache2ctl start" from a terminal?
>

root at Dell-Ubuntu:/home/emil# apache2ctl start
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.1.1 for ServerName
root at Dell-Ubuntu:/home/emil#


Ok, loading 127.0.1.1 into the address bar gets me to a page showing
"Index of /" with nothing else showing.  So I assume that is my apache
root.  Btw - http://127.0.1.1 gives me the 404 warning.  As does
127.0.1.1.:10000.  127.0.1.1:901 pops up the name/password prompt for
swat.  Anyone know what the default is?

So, do I need to add or change localhost from 127.0.0.1 to 127.0.1.1?
(see below)

ubuntu at tigershaunt.com wrote:
>
>Check output of ifconfig, make certain that device lo is present.  It
>should look something like this:
>
>lo        Link encap:Local Loopback
>          inet addr:127.0.0.1  Mask:255.0.0.0
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:15795 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:15795 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:1226425 (1.1 MB)  TX bytes:1226425 (1.1 MB)
>

eth0      Link encap:Ethernet  HWaddr 00:0b:db:10:13:ca
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::20b:dbff:fe10:13ca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:200230 errors:0 dropped:0 overruns:0 frame:0
          TX packets:133890 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:223584668 (223.5 MB)  TX bytes:13656768 (13.6 MB)
          Interrupt:17

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11253 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11253 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
>
>
-- 

          RX bytes:1101995 (1.1 MB)  TX bytes:1101995 (1.1 MB)

>
>
>Then check your /etc/hosts file, it needs to have an alias for >localhost
>that points to IP address 127.0.0.1
>

127.0.0.1 Dell-Mint
127.0.1.1 Dell-Ubuntu

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Now, since my /etc/hostname is set for Dell-Ubuntu that might be the
problem.  I'll edit it such:

127.0.0.1 Dell-Ubuntu

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

and restart and see what happens...

BTW - I know about hostname.  What can anyone tell me about domainname
on my local box? Do I need one? What are the advantages and
disadvantages of one? How do I tell if I have one? How do I change or
delete it?

Modem = 192.168.1.1
router= 192.168.2.1
Linux box =192.168.2.2
XP Box = 192.168.2.4
old 3rd machine NAS server (no longer physically present) = 192.168.2.3

Thanks again

Emil
=======================
Fantasy Football Rules:
  Wands are Offensive.
  Wings are Defensive.
=======================




More information about the ubuntu-users mailing list