htdocs change Apache 24 in windows

Asked

Viewed 54 times

0

I am reading a lot around, including pages in English.

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

I’m trying to change the location of the folder htdocs of Apache24 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">

From what 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 will I see phpinfo()

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

YES: I restart Apache first. Since it didn’t work, I restarted windows: Nothing!

Still in the same place!

Missing claim some other location will be?

1 answer

0

Okay! I don’t know why.

But after the fourth windows reboot Apache updated the DirectoryRoot

Thank you all that broke their heads trying to understand the problem!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.