Home  >  Article  >  php教程  >  apache中为php 设置虚拟目录

apache中为php 设置虚拟目录

WBOY
WBOYOriginal
2016-06-06 20:15:461025browse

这篇文章主要介绍了apache中为php 设置虚拟目录,需要的朋友可以参考下

php 设置虚拟目录两个步骤,很简单。

第一,打开安装apache目录下的conf下面的httpd.conf文件。

找到IfModule 标记, 再它下面添加红色方框中的内容。注意不能少东西。第二、注释掉原来默认的路径

现在就设置成功了。

重启apache即可。

方法很简单,,却很实用,这里记录下来,以备以后使用。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn