简体   繁体   中英

How can I change my DocumentRoot without breaking PHP?

I had my development machine set up just fine and everything worked perfectly. But then I needed to shuffle some folders around and in doing so needed to change my apache document root.

It was d:/htdocs It is now d:/web/htdocs

I've updated it both times in httpd.conf; at DocumentRoot d:/htdocs and <Directory "d:/htdocs">

The problem is that now PHP is not working. Apache has changed the root okay but even a simple phpinfo() script doesn't work.

What's going on?

I really don't understand why this would cause apache to be unable to find php. All paths referring to php from httpd.conf are absolute. Am I right in thinking it's a problem with apache finding php rather than php being able to find apache?

Thanks.

检查error.log和access.log文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM