For example, modify to 8088 port and d:/workphp directory.
Modified to Port 8088
Left-tray icon, in the "Apache" can directly open httpd.conf, find "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 to open to see still the default 80 port. Locate the Wampmanager.tpl file under the Wamp installation directory, and Notepad opens:
Add 8088 ports behind the localhost, save, exit, and reopen Wamp to take effect. (In fact, a similar URL address in the Wampmanager.ini file is changed)
Modify to d:/workphp Directory
(1) Need to modify the Apache httpd.conf file, there are 2 changes
In the d:/workphp directory to build a TXT file, write point content, restart Apache is seen in the http://localhost:8088, txt content. However, 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
Note that the "\" (backslash) in the Windows path is replaced with "/" (forward slash), and the double quotes outside the path are retained
Wampmanager.ini file, modified as follows
Through the above changes, you can find that port 8088 can be used, and localhost, phpMyAdmin, Sqlitemanager points are correct, the WWW directory also point to the location we want to set.