Modify wamp's apache default port 80 and www directory_PHP tutorial

WBOY
Release: 2016-07-13 10:35:36
Original
1116 people have browsed it

Modify wamp’s apache default port 80 and www directory

Take the modification to port 8088 and the D:/workphp directory as an example.

Left-click the tray icon, open httpd.conf directly in "Apache", find "Listen 80", and change it to other ports. I chose 8088.

Restart wamp and it will take effect. But for "Localhost", "phpMyAdmin", and "SQLiteManager", you can click to open and see that the default port 80 is still there. Find the wampmanager.tpl file in the wamp installation directory and open it in Notepad:

Add port 8088 behind localhost, save, exit and reopen wamp to take effect. (In fact, similar URL addresses in the wampmanager.ini file have also been changed)

(1) Apache’s httpd.conf file needs to be modified, there are 2 modifications

Create a txt file in the D:/workphp directory, write some content, restart Apache and you will see the txt content in http://localhost:8088. 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, modified as follows

wampmanager.ini file, modified as follows

Through the above modifications, we can find that port 8088 can be used, and the Localhost, phpMyAdmin, and SQLiteManager are all pointed correctly, and the www directory also points to the location we want to set.

Reference materials: (1) http://bbs.php100.com/read-htm-tid-48600.html

            (2) http://konglx.javaeye.com/blog/507762

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/743384.htmlTechArticleModify the apache default port 80 of wamp and the www directory. Take the modification to port 8088 and the D:/workphp directory as an example. Left click on the tray icon, you can open httpd.conf directly in Apache and find Listen...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!