开发者

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 ar开发者_如何学Pythonound 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.


Check the error.log and the access.log file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜