Solved

Apache Service

Posted on 2009-04-12
2
272 Views
Last Modified: 2013-12-13
I am trying to set up a webserver on an XP pro machine to develop php / mysql technologies. I am going round in circles setting all this up and configuring so I am going to deal with this step by step. I have read many articles and books but still haveing troubles.
 I have apache installed on my laptop which appears to work fine (version 2.063) although the root directory is C:\webserver\Apache2\htdocs. Can I change this to C:\InetPub\wwwroot ? if so where do I need to make changes so that I will see my phpinfo test page displaying correctly once stored in C:\InetPub\wwwroot. My apache is running alongside IIS and so is listening on port 8080.
0
Comment
Question by:jezskill
2 Comments
 
LVL 15

Accepted Solution

by:
ncoo earned 250 total points
ID: 24125691
You need to open up the apache conf file, c:\webserver\apache2\conf\httpd.conf

At the very bottom you might have some VirtualHosts update the DocumentRoot to C:\InetPub\wwwroot and restart Apache.

If you don't have any virtualhosts paste this at the bottom of the file and restart apache.

<VirtualHost *:8080>
    DocumentRoot C:\InetPub\wwwroot
    ServerName localhost
    ServerAlias localhost
</VirtualHost>
0
 
LVL 1

Author Closing Comment

by:jezskill
ID: 31569312
thanks for the answer, feel free to comment  on my otheropen questions.
thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question