PHP opens the environment to build

Source: Internet
Author: User

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

    1. Click on the lower right corner to find httpd.conf documentroot "c:/wamp/www/" in Apache to modify the path here
    2. Find <directory "c:/wamp/www/" > Modify your project directory ibid.
    3. 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

    1. 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

    1. Find Httpd-vhosts Remove # Save
    2. 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 ...

    3. Create a project directory under your directory
    4. Add a domain name resolution under this file

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.