<div dir="ltr">On Sat, Apr 12, 2014 at 3:53 PM, John Johnson <span dir="ltr"><<a href="mailto:jvj@golden.net" target="_blank">jvj@golden.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<u></u>
<div bgcolor="#ffffff" text="#000000">
<big>4) restarted Apache2; no start; errors re: ServerName<br></big></div></blockquote><div><br></div><div>Even if there is an error like this, it should not have any effect on Apache working.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"><big>6) restarted Apache2; no error on serverName; apache starts; </big><big>partial
success;</big><br>
<big>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.<br></big></div></blockquote><div><br></div><div>Seems Apache is responding then.<br><br></div><div>Try this to see what is being sent.<br><br>$ wget --server-response -O /dev/null localhost<br>--2014-04-10 13:40:22-- <a href="http://localhost/" target="_blank">http://localhost/</a><br>
Resolving localhost (localhost)... ::1, 127.0.0.1<br>Connecting to localhost (localhost)|::1|:80... connected.<br>
HTTP request sent, awaiting response... <br> HTTP/1.1 200 OK<br> Date: Thu, 10 Apr 2014 17:40:22 GMT<br> Server: Apache/2.2.22 (Ubuntu)<br> Vary: Accept-Encoding<br> Content-Length: 722<br> Keep-Alive: timeout=5, max=100<br>
Connection: Keep-Alive<br> Content-Type: text/html;charset=UTF-8<br>Length: 722 [text/html]<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000"><big>
8) FF: w/address "localhost/index.php" (or any of the expected
test/info pages) returns a 404 "Not Found" error<br></big></div></blockquote><div><br></div><div>First create a test.txt file and put in it a few words.<br></div><div>Put it in /var/www and make it 644.<br><br>
</div><div>Now visit localhost/test.txt and see if it loads the file from that location.<br><br>If not, then you need to check /etc/apache2/sites-enabled and see where you have Apache looking for files to serve.<br> <br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#ffffff" text="#000000"><big>
<br>
Assumptions:<br>
A) The default mapping of localhost to the default areas in
/etc/apache2 was not reestablished in the re-install of Apache.<br>
B) The mapping of localhost may be elsewhere in /etc but outside of
/etc/apache leading to a mis-match in the configuration.<br>
I may need to pull localhost mapping info from the Git/etckeeper
repository.<br>
<br>
(a) the move (aka rename) was required because the apt-get remove x did
not do all that was required.<br>
(b) many hits in Stackoverflow and elsewhere ask one to change
httpd.conf.<br>
This was changed to apache2.conf in a recent (and subsequent) Ubuntu /
Apache implementation.<br>
I have a copy of an old httpd.conf in the copy of the old apache2
directory and may need use same as reference.<br>
<br>
Status:<br>
Internet access from both Windows box and Linux box: OK.<br>
</big><big>Linux box: Apache2 is running well enough to make localhost
accessible w/o the 404 error (see above).<br>
</big><big>Linux box: Apache2 is not running well enough to provide
access to localhost/index.php or any of the other Apache test/info
pages.<br>
</big><br>
<big>Continuing (another day)<br>
<br>
Posting here for the possible benefit of others.<br>
And to solicit advice / suggestions / direction.<br>
<br>
Thanks<br>
John Johnson<br>
</big><div><div class="h5"><br>
On 2014-04-11 09:17, Adam Glauser wrote:
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Fri, Apr 11, 2014 at 7:49 AM, <span dir="ltr"><<a href="mailto:jvj@golden.net" target="_blank">jvj@golden.net</a>></span> wrote:
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0px 0px 0px 0.8ex;padding-left:1ex">But
before I embark on these repairs I am considering putting apache under
Git.<br>
I want to be able to capture and save my current apache configuration
in case this is lost in any rebuild.<br>
</blockquote>
<div><br>
</div>
<div>I recall etckeeper* being suggested in the past.</div>
<div><br>
</div>
<div>* <a href="http://joeyh.name/code/etckeeper/" target="_blank">http://joeyh.name/code/etckeeper/</a></div>
<div>* <a href="https://help.ubuntu.com/12.04/serverguide/etckeeper.html" target="_blank">https://help.ubuntu.com/12.04/serverguide/etckeeper.html</a><br>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</div></div><tt>< ... snip ... ></tt><br>
</div>
<br>_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>
Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. -- Leonardo da Vinci<br>For every complex problem, there is an answer that is clear, simple, and wrong." -- H.L. Mencken<br>
</div></div>