Pre-order {
By default, Apache's PHP site is htdocs
Depending on the actual development requirements, you may want to change the location of this directory
}
First Step {
Open the Apache configuration file,
}
Step Two {
Locate the document root directory, the English name is DocumentRoot
Create a new folder under one drive letter and save the suffix php file.
Copy the folder path to this, and save
Restart Apache, verify
}
Step three {
Change permissions on the Apache virtual directory
Restart Apache, verify
Create a copy of the text file and name it index.php
Save, Access Local
}
Here the bloggers add a little "Set index page" {
Some people may be installed, after the configuration of the environment, finish writing index.php,
Access to localhost does not directly open the index.php, but opens a directory structure
Workaround, or set the Apache configuration
}
Walked so long, plainly, you want it to be what kind of, go directly to set up its related configuration, mostly change configuration
Change the Apache virtual directory and grant permissions