PHP Newbie: Win2k, Apache, PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

okie, i'll check then. just sucks, because I know it's just something I'm screwing up somehow....

What I'll do is I'll burn the php.ini file and the http.conf files to a disk, and post them in here.

Maybe it's a setting i'm not typing in, or not changing that the manual/install script is not offering to tell ya to do...


8O
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

Last possibility....

When I double-click Network Neighborhood, it just gives me an option to "setup a dial-up acct"

Does this even matter?

Does one have to setup dhcp or dns on their machine before they can get this working?

If so, why? I thought if you was just using it as a remote server, and use it only on that box that it would be fine? dunno lol.... 8O
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

what happens if you type in a cli-window ping localhost does it resolve localhost to 127.0.0.1?
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

I don't know, haven't tried that yet. Will try when I get home.

Let's say it does, and also let's say that it doesn't ( just in case hehe )...

What then? 8O
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

if: I'm baffled (for now ;) )
if not: try http://127.0.0.1 as server-adr. and we'll see later what to do
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

hehe, word, will do 8O
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

One other thing you could try is making a change to your hosts file. On my machine it lives at C:\WINNT\system32\drivers\etc. Open that up and add this line:

Code: Select all

127.0.0.1 localhost
if it isn't already there.

Mac
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

maybe there is only a hosts.sam(ple) file in this directory.
Rename it to hosts and edit it.
There should be (by default) nothing else in than a lot of comments and this one entry.
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

Here is what I found out last night ( about 4am mind you lol.. missed my psy231 exame today =( )

After installation of Windows2k

I ran the Configure Your Server app. After clicking finished, it would then pop up a box, saying it was going to install Active Directory.

After it finished installing the necessary files, it then prompted me with a message saying "Connetion to the Network Could Not Be Esablished".

This lead me to believe that something was up. I then checked to see if windows was even recognizing my NIC Card, and it was, but it had yet to install any drivers for it.

Thus, I had no local area network, and could not use my localhost to view any type of data.

This confused me, because I assumed that whether you had a NIC Installed correctly or not, it should still use the web server and still be able to load my php...

So, I did a little more investigating, and found that if you don't have a nic installed properly, you cannot setup dhcp, you cannot setup tcp/ip, and therefore you cannot view your localhost through ie as a webserver because of this...

Am I correct in assuming this? Thanks....

8O
Post Reply