Solved

Apache Service

Posted on 2009-04-12
2
269 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
Comment Utility
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
Comment Utility
thanks for the answer, feel free to comment  on my otheropen questions.
thanks
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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 …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now