logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can't change the document root
Author
Andi04



Joined: 26 Oct 2013
Posts: 6
Location: Sweden

PostPosted: Sat 26 Oct '13 11:40    Post subject: Can't change the document root Reply with quote

Hello

I just made a fresh install of the following
Apache 2.4 (x64)
PHP 5.5.5 Thread Safe (x64)
OS: Windows 8.1 (x64)

And I think everything is working. When openingen 127.0.0.1 I see the apache message that the server is running and when executing phpinfo() it displays the PHP info.

My problem is that I'm trying to change the document root.

I have change the following in the httpd.conf:
DocumentRoot "C:/Apache24/htdocs"
<Directory "C:/Apache24/htdocs">

The lines abowe have been change to:
DocumentRoot "D:/www"
<Directory "D:/www">

After this I did a reboot of the apache server using the CMD httpd -k restart. I even tried restarting using the apachemonitor and rebooted the whole server. But apache still loads the files from c:/Apache24/htdocs

I can't find any more entries with htdocs to change. What am I missing?

Please, need som advice to fix this.

Best regards
Andreas
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Sat 26 Oct '13 11:55    Post subject: Reply with quote

From the Readme.txt in the zip:

When you unzip to an other location, change ServerRoot in the httpd.conf,
and change in httpd.conf the Documenroot, Directories, ScriptAlias etc.
also when you use the extra folder config file(s) change to your location there.


Steffen
Back to top
Andi04



Joined: 26 Oct 2013
Posts: 6
Location: Sweden

PostPosted: Sat 26 Oct '13 12:10    Post subject: Reply with quote

Thanks!
Back to top


Reply to topic   Topic: Can't change the document root View previous topic :: View next topic
Post new topic   Forum Index -> Apache