Home > Article > Backend Development > Set up a virtual directory for php in apache, apache virtual directory_PHP tutorial
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.