<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">On 2011-05-13 21:46,
unsolicited wrote:</font>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite"><font
face="Helvetica, Arial, sans-serif">John Johnson wrote, On 05/13/2011
8:14 PM:
<br>
</font></blockquote>
<br>
<tt>< ... snip ...></tt><br>
<br>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite">
<blockquote type="cite"><font face="Helvetica, Arial, sans-serif">Though
LAMP I have MySQL installed.
<br>
MySQL works locally.
<br>
MySQL works through <a class="moz-txt-link-freetext" href="http://localhost/">http://localhost/</a> see below.
<br>
*MySQL does not work through the tubes*.
<br>
</font></blockquote>
</blockquote>
<br>
<tt>< ... snip ...></tt><br>
<br>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite"><font
face="Helvetica, Arial, sans-serif">I don't have the answer, but some
thoughts and suggestions:
<br>
- IIRC, Apache works on names, not numbers. I expect localhost is an
exception, or the browser auto-translates it to 127.0.0.1. So:
<br>
- if <a class="moz-txt-link-freetext" href="http://localhost/etc">http://localhost/etc</a> works, does <a class="moz-txt-link-freetext" href="http://">http://</a><real ip
address>/etc work?
<br>
</font></blockquote>
<br>
<tt><a class="moz-txt-link-freetext" href="http://">http://</a><real
ip address>/etc does indeed work w/caveats<br>
a) on the Linux box: the ip address is that of my subnet behind the
router, i.e. 192.168.0.102<br>
b) on the Win box: (w/HTTP 500 error): the ip adrress is the 'real
world' ip address<br>
</tt><br>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite"><font
face="Helvetica, Arial, sans-serif">- does
<a class="moz-txt-link-freetext" href="http://">http://</a><mymachinename>/etc work.
</font><br>
</blockquote>
<br>
<tt>Again <a class="moz-txt-link-freetext" href="http://">http://</a><mymachinename>/etc does work - on the Linux box.<br>
<a class="moz-txt-link-freetext" href="http://">http://</a><mymachinename> is not mapped* such that it can be found
from the Win box. <br>
* I see your suggestions below re hosts.<br>
</tt><br>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite"><font
face="Helvetica, Arial, sans-serif">- From windows, if you do telnet
80 <ipaddress>, does anything good happen, like, text of any
sort? If you type in 'get stuff' do you get file not found sort of
thing?
</font><br>
</blockquote>
<br>
<tt>telnet -l username 192:168.0.102 80 did bring up something - the
text of the index.html file on the Linux box</tt><br>
<br>
<font face="Helvetica, Arial, sans-serif">I did not mention above that
the etc part of the <a class="moz-txt-link-freetext" href="http://">http://</a><real ip address>/etc is a path name
to my test file. <br>
And that if the etc is left out as in <a class="moz-txt-link-freetext" href="http://">http://</a><real ip address>/
the browser brings up index.html<br>
</font><br>
<tt>Anyway: telnet from windows works - but does not help.</tt><br>
<br>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite"><font
face="Helvetica, Arial, sans-serif">- it should be the apache process
calling mysql, ...</font><br>
</blockquote>
<br>
<tt>Nadda. See above.</tt><br>
<br>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite"><font
face="Helvetica, Arial, sans-serif">so if it works on locahost, I
suspect it should work everywhere. i.e. not a caller permissions, or
access, error.
</font><font face="Helvetica, Arial, sans-serif"> </font>
</blockquote>
<br>
<tt>index.html executes locally (in the Linux box) and remotely from
the WinXP box<br>
other files, with php extensions & php code, also execute locally
(in the Linux box) and remotely from the WinXP box<br>
the problem is when MySQL code is buried in the php files, these files
execute locally through localhost and through 192.168.0.102 <br>
but not remotely from the WinXP box<br>
it could be a caller permissions or access error - hence my attempt to
use chmod <br>
btw: php code w/o the MySQL code is in the same directory as php code
with the MySQL code (so not a perms error on the dir)<br>
</tt><br>
<blockquote cite="mid:4DCDDF05.9060405@swiz.ca" type="cite"><font
face="Helvetica, Arial, sans-serif">It might not hurt to update
%windir%\system32\drivers\etc\hosts with appropriate names, so you can
browse by name, not just ip. You might update lmhosts while you're
there - perhaps facilitating samba in your future.
<br>
</font></blockquote>
<br>
<tt>Tx: For this info.</tt><br>
<br>
<tt>JohnJ</tt><br>
<br>
<br>
</body>
</html>