PHP opens the environment to build
???? Wamp software Download: http://www.wampserver.com/This is the version 2.5 download down one-click installation.
An idea was installed.
This is not a tube or [email protected][email protected] later use of the PHP mailbox interface when used
?
If there is a yellow icon in the lower right corner, your 80 port is occupied
Left button to set your language
Customizing Sites and directories
Our default Web site is in the installation directory under the WWW but our site file location is definitely independent of all need configuration files
- Click on the lower right corner to find httpd.conf documentroot "c:/wamp/www/" in Apache to modify the path here
- Find <directory "c:/wamp/www/" > Modify your project directory ibid.
- Restart all services in the lower-right corner of the computer icon that-all configuration file modifications need to restart the service
For example, the directory we modified is F:/demo
Then we create a new index.php file in this directory
Enter <?php echo "Hello World"?>
Then click on the lower right corner of the localhost to see if you can access the following please see the instructions you modified successfully
Finally, one more question. Click the WWW directory in the lower right corner to find the Open directory or the previous
- Open WWW's parent directory wampum directory find Wampmanager.ini file modified here
Change to your name and directory
?
Close reopen Wampserver To see the changes take effect
Multi-site Configuration
Open the following file
?
1. Add the following file
<virtualhost *:80>
DocumentRoot "f:/phpprograms/test01"
ServerName test01.com
</VirtualHost>
?
<virtualhost *:80>
DocumentRoot "f:/phpprograms/test02"
ServerName test02.com
</VirtualHost>
Only two of the above DocumentRoot are kept here ServerName useful
This is the same as a multi-virtual directory in IIS.
?
Note that this file is an extension file that is not loaded by default, so open the httpd.conf file to modify the configuration
- Find Httpd-vhosts Remove # Save
- If your files are like this don't have to modify
If it contains a need to change the first line of deny to allow in front of the second line plus #
Allow from all
#Allow from 127.0.0.1
Restart service ...
- Create a project directory under your directory
- Add a domain name resolution under this file
- Test
? Wampserver self-drawn port number
or open the httpd.conf find 80
Change these two places to restart the service.
PHP opens the environment to build