|
-
Feb 4th, 2010, 05:06 AM
#1
Thread Starter
Hyperactive Member
Apache web server configuration
Hello all,
Background:
Previously I was using IIS5 as a web server but could not configure MySQL and PHP to work together. I have now moved to apache web server and both are configured but.....
Having never used apache I am confued as to where to place folders relating to my web applications and how they are configured to work with apache.
Any assistance is greatly appreciated.
Kind regards
Steve
-
Feb 4th, 2010, 09:44 AM
#2
Re: Apache web server configuration
what does "web applications" mean? if you just have a default installation, your "root" folder would be in the apache directory under "htdocs." your files would just go in there. if you would like, you can change this directory by editing the file in apache/conf/httpd.conf and finding the directive DocumentRoot and changing it to another directory. for example, I usually use a separate partition, something like E:/webroot (without the trailing slash). then, you can go edit the default options for this directory by scrolling down a little (approximately line 204 in apache 2.2's httpd.conf), or search for <Directory. change the directory to whatever you changed DocumentRoot to -- <Directory "E:/webroot"> -- and then you're pretty much finished. you can now put any files in whatever directory you picked and they will be accessible via http://localhost.
I hope that was actually what you were asking for!
-
Feb 5th, 2010, 08:06 AM
#3
Thread Starter
Hyperactive Member
Re: Apache web server configuration
Hello Kows,
You are correct. I am attemting to set a folder oa a seperate partition to use as location for web sites.
I have been reading up on using this software and can now offer a greater insight into the issues I'm having.
I have installed Apache via XAMPP, which is slightly different to a normal Apache installation (why? I haven't a clue).
I made a change in the Apache/conf file to ("G:/webroot") but Windows decided it wanted to update Office to service pack 2 and wouldn't allow me to start Apache again. I shall put work into this over the weekend and keep a log of what I'm doing in case it can be used by others here.
Again thank you for the pointers given.
Kind regards
Steve
-
Feb 5th, 2010, 02:46 PM
#4
Re: Apache web server configuration
if it doesn't let you start Apache (rather than literally open), then something is probably listening on port 80. you'll have to disable whatever is listening on port 80, or change Apache's listening port to something else. I would try to disable the other service running on port 80 though for convenience, as nothing I can think of in Microsoft Office should need to listen on it.
if it doesn't let you open (or launch) Apache at all, then I wouldn't have any idea what was wrong.
if you use Skype, though: Skype now listens on port 80 by default and has a setting that can be changed to either disable the functionality or make it listen on a different port -- I can't remember which. if you can't figure it out, you could probably try Googling something like, "Skype listening on port 80," but I'm not at home so I couldn't even begin to help any further than that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|