Wampsever Custom site root, multisite configuration, custom port number

Source: Internet
Author: User
Tags multisite

1. Customizing the site root directory

Click Apache

Search DocumentRoot, change directory

and a catalogue of <directory "F:/www" >

Click www

Return to the previous level file open the Wampmanager.ini file, search for menu.left, find "www directory", rename the demo (other names can also), and modify the path.

Open the Wampsever.tpl file, search for Menu.left, find "w_wwwdirectory", rename the "Demo directory", and modify the path (such as F:/demo), save and restart the service.

2. Multi-site Configuration

Locate the installation path under BIN/APACHE/APACHE.2.2.1/CONF/EXTRA/HTTPD-VHOSTS.CONF (this is a configuration file for a virtual directory)

According to the example provided inside, Severadmin (set admin mailbox), DocumentRoot (Directory of website Code), Severname (hostname), errorlog (Error log), Customlog (daily log)

Modify DocumentRoot (f:/demo/test01) and Severname (test01.com)

When you are finished, click Apache, open httpd.conf, search include conf/extra/httpd-vhosts.conf, remove #, save and restart the service.

Set allow external access to the file under Demo, click Apache, open httpd.conf, search <directory "F:/demo" > (probably not the same as the directory you previously set up), find "Deny from all allows for 127.0.0.1 "(allow local access, block external access), modify to" Enable from all ", save and restart the service.

Create Folder test01 under Demo, create index.php file in test01, enter "<?php echo" Hello test01 "?>" to complete the website code.

The last step, find the C-drive under Windows/system32/drivers/etc/hosts, open at the end of the add site "127.0.0.1 test01.com" (127.0.0.1 point to the local localhost, Encounter test01.com domain name start from 127.0.0.1 first)

3. Custom Port Numbers

Open httpd.conf, search (Apache default port number), find "Listen 80", modify to 8080 (unused end openings), then find "Severname localhost:80", modify to "8080", Save and restart the service.

4. Modify the default password for phpMyAdmin

1. Enter the phpMyAdmin folder under Wamp/apps under installation letter

2. Open Config.inc File

3. Find

$cfg [' Servers '] [$i] [' user '] = ' root ';

$cfg [' Servers '] [$i] [' password '] = ' Fill in your password here ';

4, modify your password, save can.

5. Configuration changes Apache Home file name

When you enter such as http://localhost , Apache will default to open the Index.html file, if you want to modify the home page file or add home file, open httpd.conf, find DirectoryIndex index.html, modify index.html for the file name you want, such as test.php. If you want to add more than one home file, can be separated by a space, the pre-and post-file order is the first page file read priority. Restart Apache service after modification!

Wampsever Custom site root, multisite configuration, custom port number

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.