FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Runs In WinXP Command Window But Not In Browser
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Runs In WinXP Command Window But Not In Browser [message #173656 is a reply to message #173590] Sun, 24 April 2011 13:23 Go to previous messageGo to previous message
James Carlock is currently offline  James Carlock
Messages: 3
Registered: April 2011
Karma:
Junior Member
: Hi Jim,
:
: I'm new to this and do not see why I would want
: to change the DNS once it is assigned. I thought
: that the DNS just translates user friendly host
: names into IP addresses. Would I need to change
: the DNS if the host name and IP address remained
: the same?

No, if your IP does not change, you do not need to
worry about it, except when you change to a another
HOST (or possibly other situations).

: One concern that I do have is storage since I will
: need to store and process several very large files.

> Configure Apache on your XP machine to run PHP and
> then use your IP address as a SERVERNAME for the
> very first parameter. You can use the hosts file
> to configure the IP address to the host name as
> well for a quick and easy way to configure DNS
> for self-testing on XP.

: ServerName, in httpd.conf, is localhost:80.
: Should I change that to the IP address I get from
: ipconfig? When you say I can use the hosts file
: to configure the IP address to the host name, do
: you mean to do the same mapping on my machine that
: the DNS does on the web host?

The HOSTS file on a machine provides a quick way to
tell Apache (if you wanted to test things before
uploading them to your HOST) where to reach a domain
name configured for testing.

You can find the hosts file in the following space:
%systemroot%\system32\drivers\etc\

It might be located in another space if you run an
x64 version of Windows.

The "hosts" file is a plain text file which reads
something like:

# Start of entries inserted by
# Spybot - Search & Destroy
# Copyright 2000-2008 Safer Networking Limited
127.0.0.1 yyour_ssample_ddomain_nname.com

SpyBot Search & Destroy uses it to prevent visiting
remote sites and which helps prevent your machine
from visiting viral/SPAM/unorthodox sites. You can
use it to tell Apache where to reach an example
domain. It provides the same information that DNS
provides, but gets read before the software goes to
an outside DNS to find the information. Once found
in the HOSTS, most software uses that and does not
go out to an outside source (server). Above, I did
change the unorthodox domain name that SpyBot placed
in there to something that will not upset anyone
here and is unlikely to get used anywhere/anytime.

I do not use LOCALHOST for much of anything. However,
I read that using LOCALHOST inside of Apache might
create some problems. I can not confirm that without
making a lot of changes and I do not have the time to
test such things.

SpyBot Search & Destroy uses the "hosts" to store the
domain names of perhaps 1000 or more domains that
they found as lude, crude, porn or what ever and it
prevents the machine from going to an outside DNS to
look up those domain names and visiting those.

I have not followed the thread here, as I've been a
tad busy with other things. Forgive me for being a
tad slow on my reply.

The details that follow apply to running/hosting an
Apache server on your own machine.

httpd.conf
Listen = 80
ServerName = your_ip_address

Hope this helps. Good luck.

--
Jim Carlock
http://www.facebook.com/jim.carlock
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: neither var_dump() nor die() displays anything
Next Topic: Spaces in filenames
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 13:19:04 GMT 2024

Total time taken to generate the page: 0.06982 seconds