[kwlug-disc] Ubuntu 12.04 LTS localhost* and internet fail - where to start^h^h^h^h^h continue?
unsolicited
unsolicited at swiz.ca
Sat Apr 12 16:24:49 EDT 2014
But does 'ping localhost' or 'ping 127.0.0.1' or 'nslookup localhost'
show success? Does 'ifconfig' show localhost up? Does /etc/hosts show a
localhost in it?
Like, top line of /etc/hosts:
127.0.0.1 localhost .host
ifconfig:
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:578399 errors:0 dropped:0 overruns:0 frame:0
TX packets:578399 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:295708372 (295.7 MB) TX bytes:295708372 (295.7 MB)
On 14-04-12 03:53 PM, John Johnson wrote:
> Linux box:
> 1) installed and initialized Git
> 2) installed etckeeper ; configured same for Git; initialized as required
> (Thanks Adam for the tip, re: etckeeper.)
> 3) removed; moved and reinstalled Apache2 (a)
> 4) restarted Apache2; no start; errors re: ServerName
> 5) errors w/localhost; needed to mod apache2.conf to add ServerName
> localhost (b)
> 6) restarted Apache2; no error on serverName; apache starts; partial
> success;
> 7: FF: w/address "localhost" returns an empty "Index of /" page; does
> not return a 404 error; also does not return the expected "It Works" page.
> 8) FF: w/address "localhost/index.php" (or any of the expected test/info
> pages) returns a 404 "Not Found" error
>
> Assumptions:
> A) The default mapping of localhost to the default areas in /etc/apache2
> was not reestablished in the re-install of Apache.
> B) The mapping of localhost may be elsewhere in /etc but outside of
> /etc/apache leading to a mis-match in the configuration.
> I may need to pull localhost mapping info from the Git/etckeeper
> repository.
>
> (a) the move (aka rename) was required because the apt-get remove x did
> not do all that was required.
> (b) many hits in Stackoverflow and elsewhere ask one to change httpd.conf.
> This was changed to apache2.conf in a recent (and subsequent) Ubuntu /
> Apache implementation.
> I have a copy of an old httpd.conf in the copy of the old apache2
> directory and may need use same as reference.
>
> Status:
> Internet access from both Windows box and Linux box: OK.
> Linux box: Apache2 is running well enough to make localhost accessible
> w/o the 404 error (see above).
> Linux box: Apache2 is not running well enough to provide access to
> localhost/index.php or any of the other Apache test/info pages.
>
> Continuing (another day)
>
> Posting here for the possible benefit of others.
> And to solicit advice / suggestions / direction.
>
> Thanks
> John Johnson
>
> On 2014-04-11 09:17, Adam Glauser wrote:
>> On Fri, Apr 11, 2014 at 7:49 AM, <jvj at golden.net
>> <mailto:jvj at golden.net>> wrote:
>>
>> But before I embark on these repairs I am considering putting
>> apache under Git.
>> I want to be able to capture and save my current apache
>> configuration in case this is lost in any rebuild.
>>
>>
>> I recall etckeeper* being suggested in the past.
>>
>> * http://joeyh.name/code/etckeeper/
>> * https://help.ubuntu.com/12.04/serverguide/etckeeper.html
>
> < ... snip ... >
>
>
>
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>
More information about the kwlug-disc
mailing list