Modify Wamp's Apache default port 80 to 8088 and www directory

Source: Internet
Author: User

Take the example of modifying the 8088 port and the d:/workphp directory.

Modify to 8088 Port

Left-click Tray icon, in "Apache" can directly open httpd.conf, find to "Listen 80", can be changed to other ports, I choose 8088.

Restart the Wamp, it will be effective. But "Localhost", "PhpMyAdmin", "Sqlitemanager", you can click Open to see still the default port 80. Locate the Wampmanager.tpl file in the Wamp installation directory, and Notepad opens:

Add 8088 port after localhost, save, exit and reopen wamp in effect. (In fact, a similar URL address in the Wampmanager.ini file changes as well)

Modify to d:/workphp Directory

(1) Need to modify Apache httpd.conf file, there are 2 changes

In the d:/workphp directory to build a TXT file, write something, restart Apache is seen in the http://localhost:8088, txt content. But the WWW directory still points to the default location. This requires modifying the WAMPMANAGER.TPL and Wampmanager.ini files in the Wamp installation directory.

(2) Wampmanager.tpl file, modify the following

Note that the "\" (backslash) in the Windows path is replaced by a "/" (forward slash), and the double quotation marks outside the path are preserved

Wampmanager.ini file, modify the following

Through the above changes, you can find that port 8088 can be used, and localhost, phpMyAdmin, Sqlitemanager points are correct, the WWW directory also points to the location we want to set.

Excerpt from the Script house http://www.jb51.net/article/48297.htm

Modify Wamp's Apache default port 80 to 8088 and www directory

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.