Home >Backend Development >PHP Tutorial >Set up a virtual directory for php in apache, apache virtual directory_PHP tutorial

Set up a virtual directory for php in apache, apache virtual directory_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:11:29954browse

Set a virtual directory for php in apache, apache virtual directory

php sets up a virtual directory in two steps, very simple.

First, open the httpd.conf file under conf in the directory where apache is installed.

Find the IfModule tag and add the content in the red box below it. Be careful not to miss anything. Second, comment out the original default path

The setup is now successful.

Just restart apache.

The method is very simple but very practical. It is recorded here for future use.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/929094.htmlTechArticleSet a virtual directory for php in apache, apache virtual directory php sets a virtual directory in two steps, very simple. First, open the httpd.conf file under conf in the directory where apache is installed. Found...
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