Forum Moderators: phranque

Message Too Old, No Replies

Apache on xp

Just starting I need help setting up Apache sever

         

steelrane

9:09 pm on Feb 21, 2004 (gmt 0)

10+ Year Member



I new to servers I told to use Apache for testing my PHP scripts I know HTML but I want to learn PHP so I loaded Apache 2.0 on my HD I'm using xp pro I also have PHP 4.3.4 zip package and now I'm stuck when Apache first installed it asked for a domain name so I made one up then when I start Apache I get a error message no installed service name Apache2 file What the heck am I doing wrong?

jdMorgan

10:11 pm on Feb 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



steelrane,

If you intend to do production work, I'd suggest you use Apache 1.3.something... Apache 2.0 is not yet ready for non-experimental use. I seem to recall problems with PHP specifically, and you might want to ask around, or try a site search.

I suspect that you'll get better advice on Monday, when there are more people here.

Jim

steelrane

10:43 pm on Feb 21, 2004 (gmt 0)

10+ Year Member



Thanks I will try 1.3 I just watched a video from tech tv that said 2.0 still has many issues with its mods so I will get rid of the 2.0 and try agian.
Thanks
Steelrane

jetboy_70

11:17 pm on Feb 21, 2004 (gmt 0)

10+ Year Member



Just doing this myself this weekend! I had exactly the same problem, and in my case I needed to uninstall IIS. You can only have one server listening on port 80, and if IIS is running, Apache won't install.

To check, open up a command prompt and enter:

netstat -an

You are looking for something listening on port 80 - a sign that there's a server running.

This could also be a firewall issue, so it may be worth turning off the MS firewall and any third-party firewall before installing. Paranoia suggests not being on the internet when you do this!

If you decide to stick with Apache 2, feel free to sticky me while this is fresh in my mind, although jdMorgan has a valid point about sticking with 1.3. If you sign up for PHP hosting somewhere it's likely to be on 1.3, and there are many reasons to have your dev environment as close as possible to your live one.

matc

2:07 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



in addition to this topic...

There was an issue with having spaces in the file directory when using Apache 2x and PHP as of a few months ago. I would suggest not installing it in Program Files for obvious reasons. I could be out of date and am open to correction :)

I've got all my server apps and addons top level of C in a folder called server. All the servers config files are top level of the D drive so to aloow for easier backups.

ject

steelrane

3:47 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



Yea,
I changed from 2.0-1.3 now to run it I need to get offline and then run it? or because I'm only using it as an internal server just for praticing my php skills it won't look outside my system? This is my first server set up so forgive me if my questions are very simple I just want to be careful so not to leave my system open.

jetboy_70

5:01 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



When you set it up, the installer would have asked which website you wanted to work with. Hopefully you chose 'localhost'.

If so, typing in 'http://localhost' in your web browser should bring up an Apache holding page.

If you chose something other than 'localhost' you'll need to add it to your hosts file.

If you go into C:\windows\system32\drivers\etc, open up 'hosts' in Notepad, add another line in the style of the localhost entry but using the name you specified for Apache.

jetboy_70

5:02 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



Being online or offline shouldn't make any difference.

steelrane

5:24 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



Jet Boy
I don't think I put in localhost I read that I should put 127.0.0.1 Have you read that? I'm hoping that your talking about host names and then I put in a different server name Is any of this makeing any sense?

jetboy_70

10:03 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



Er, okay (as I've only ever installed Apache 2 I might be getting in over my head here) - what happens when you put [127.0.0.1...] into your browser?

steelrane

5:46 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Well nothing happens. I checked to see if it was running and it is. I tested the config. it said syntax ok. So what do I do next?
Confused,
Steelrane

matc

6:02 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Hi there

Nothing happens? no error page or nothing no?
Have you looked in services and applications yet to see if it is running as a service?

Right click on My Computer>Manage>Services and Applications>services...

This shows a listing of all ther service that are running on XP. Somewhere in there if installed correctly should be the lovely Apache 2.

You can right click on it to see its properties to see how its set to start.

matc

6:07 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Heres a link that may also give some pointers
[ricocheting.com...]

cheers, ject

steelrane

7:58 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



I'm running 1.3 because of I've heard from a few sources that 2.0 has issues I'm just trying to learn php so I'm not trying to put this online. Have you heard this? I think I'm on the right trail to php.
Steelrane

ergophobe

8:41 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




Being online or offline shouldn't make any difference.

Shouldn't, but sometimes does with IE. I used to hate this when I had a dial-up and would have to let the modem connect me to the net before IE would open an address at localhost.

ergophobe

8:49 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




127.0.0.1 vs localhost

127.0.0.1 will *always* work (er.. assuming the server works at all). You should not have to put that in anywhere, since it is the local loop-back TCP/IP address and your machine should always know itself by that address.

localhost will *also* work if you have this in your httpd.conf

ServerName localhost

Steel,

what is your DocumentRoot set to? Look for a line like

DocumentRoot "C:/htdocs"

It should point to a directory that has files. Make sure that dir has files named index.html and index.htm that have *something* (anything) in them (like: "This is index.html").

Now try again. Anything happen?

Tom

steelrane

9:53 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Yes I made it its running and I can see it. It was my firewall. Now its time to learn php thanks to all for your help I couldn't have done without you. I hope learning php is as fun as html.
Steelrane