Change htdocs Apache 24 on windows

0

I'm reading a lot, including English pages.

But no explanation works. Or it works and something is missing.

I want to change the location of the Apache24 htdocs folder to disk D.

So I did:

#DocumentRoot "D:\Trabalhos\host\htdocs"
#<Directory "D:\Trabalhos\host\htdocs">

DocumentRoot "C:\Program Files\Apache24\Apache24\htdocs"
<Directory "C:\Program Files\Apache24\Apache24\htdocs">

So you can see the old lines I commented.

But I also did it with the new ones.

DocumentRoot "C:\Program Files\Apache24\Apache24\htdocs"
<Directory "C:\Program Files\Apache24\Apache24\htdocs">

Result? When I go to phpinfo ()

DOCUMENT_ROOT    C:/Program Files/Apache24/Apache24/htdocs

YES: I restart Apache first. As it did not work, I restarted windows: Nothing!

Stay in the same place!

Missing some other spot will it be?

    
asked by anonymous 14.06.2018 / 13:46

1 answer

0

Okay! I do not know why.

But after the fourth Windows restart Apache has updated DirectoryRoot

Thanks to everyone who broke their heads trying to understand the problem!

    
14.06.2018 / 15:10