Help - Search - Members - Calendar
Full Version: Setting Up Apache
BleepingComputer.com > Internet & Networking > Web Site Development
   
Wendy K. Walker
Hi Everyone,

I'm having fits trying to set up a web server locally. I'm trying to get Apache set up and I don't really understand what I'm doing.

First off I'm supposed to make sure that I 'bind' it to 'localhost' only and I haven't a clue as what that means or how to do it.

Second, I'm supposed to setup PHP to use with Apache, however, every time that I add these two lines to the Apache httpd.conf file, as per instructions, Apache refuses to star until I comment them out again;

LoadModule php5_module "C:/Program Files/PHP/php5apache2.dll"
PHPIniDir "C:/Program Files/PHP"

The instructions said to put those two lines at the top of the httpd.conf file so as it stands right now those are the first two lines in that file but I have to have them commented out for Apache to start so I'm wondering if anyone else has ran into this problem or if maybe I'm doing something wrong.

Thanks for any help.
Wendy
groovicus
First, do you have PHP installed as it asks? I mean, is your PHP directory 'C:/Program Files/PHP/'? It would indicate to me that Apache can not find it where you are directing it to look, so it chokes instead.
Wendy K. Walker
Hi groovicus,

Thanks for the reply. Yep, C:/Program Files/PHP/php5apache2.dll is the correct path but I'm not too sure what this is --> PHPIniDir "C:/Program Files/PHP" <-- or if that path is correct.

As long as I comment out those two lines Apache cranks right up. What else might be getting in the way? Is there any file in PHP that should be moved to either the Windows or System32 directories so that Windows can find it?

I'm running Windows XP Home Edition SP2. I remember reading somewhere about having to move, not copy either php5nsapi.dll or phpisapi.dll to one of those locations but I believe that was just for XP Pro.

Got any ideas?

Thanks,

Wendy
groovicus
It is only looking for one path, and if one is correct, the other one should be correct also. It is looking for the base install of PHP (C:/Program Files/PHP), which it appears that you already have, since the other path is correct. You need to look at the Apache logs and see what is causing it to bomb. Apache is good at logging, so one you find the logs, you should be able to find the root cause of the problem. Sorry I can't be more specific. Once you find the root error though, it should be easy to fix the problem.
Wendy K. Walker
Hi groovicus,

Thanks for the reply. I have uninstalled everything and I'm starting all over again to see if I can find what I did wrong.

When I had downloaded PHP it was supposed to configure its self to Apache so I don't really know what to think. Anyway, I'm starting over so maybe everything will work right the next time around.

Thanks,

Wendy
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.