Question:
HOW do i get apache to work on a win xp home edition?
computer geek
2006-12-07 09:28:35 UTC
i just downloaded apache and correctly installed it on my win xp home edition . i created a file at c: called mysite and a sub file under it called documents ( c:/mysite/documents )

i saved a file at the documents directory and entered htpp://localhost on my browser but got a 403 error that i can't have access to the file . I will like to know how to get the apache to show my files .
Four answers:
ballarke
2006-12-07 09:34:06 UTC
In your configuration file, you need to set the DocumentRoot option to point to the home directory for your site. If the home directory is c:/mysite, then the line should look like this:



DocumentRoot="C:/mysite"



Set it to whatever you need and restart the service. To access the document, you will need to ensure you include the full filename, otherwise Apache will default to index.html or index.htm, whichever it can find. If you're trying to access index.htm or index.html, then just changing the document root should work.
djlazi
2006-12-07 10:13:31 UTC
Well the default installation for apache is

"\Program Files\Apache Software Foundation\Apache2.2\"



Now we need to start apache.



You can either choose to run apache as service or from command line.



Go to start and select run, then type in cmd and hit enter.

then type

c:

cd "\Program Files\Apache Software Foundation\Apache2.2\bin"

httpd -k install



there are more options but this is the default.



For the command line



Go to start and select run, then type in cmd and hit enter.



at the prompt type in

apache

or



c:

cd "\Program Files\Apache Software Foundation\Apache2.2\bin"

httpd





if there is a problem you can go to

\Program Files\Apache Software Foundation\Apache2.2\logs

and look through the error.log to see whats wrong.



Now you want to leave that command line window open and you should be able to type in http://localhost and see your site.



Now if you are still have problems and you know that apache is running successfully, you might perhaps want to check your windows firewall if its running or any other firewall software you may have.



This is just a quick help, there is more information available at

http://httpd.apache.org/docs/2.2/platform/windows.html



Last time I checked there is a folder inside of

\Program Files\Apache Software Foundation\Apache2.2\

called htdocs and you should be able to find your default pages there and put any additional pages you want there to.



This again is just the default setup, You didn't give enough information to tell you exactly what to do for your setup, like where you installed apache, whether you know for sure port 80 is open, etc, etc.



I hope this helps.

Good Luck
2016-11-25 02:06:29 UTC
As a gamer, abode or specialist, both one may do. yet as a programmer, i'd advise specialist version. i do not understand what sort of programming you're into yet there is many developer courses that are outfitted for XP specialist and by no skill for abode variants. as an example, Microsoft Virutal computing device, which I often times use to virtualize a abode windows Server for attempting out applications, is outfitted for specialist version. further, Microsoft sq. Server doesn't help the abode version. also, XP promises extra protection. possibly you'd be playing on-line video games and may be at risk of assaults? So, yet another situation to consider.
delm
2006-12-07 09:43:01 UTC
Did you configured an alias for the folder?

Remember that paths other than /htdocs/ must be configured as aliases in httpd.conf



Other thing you could try if you're starting in this, is downloading xampp lite that cames pre-configured and it's a copy&paste installation.



Below are links to documentation and downloads.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...