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