Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Apache Service

Posted on 2009-04-12
2
Medium Priority
?
281 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 1000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

877 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