I have just installed WampServer64 on Windows 10. By default, if you want to run a PHP webpage you have to put it in a project directory in C:\wamp64\www
. However, this is inconvenient for me as normally projects live in my GitHub directory C:\Users\<user>\GitHub
. Is it possible to run a PHP webpage that lives in a directory in this GitHub folder?
Asked
Active
Viewed 28 times
1

binaryfunt
- 6,401
- 5
- 37
- 59
-
1yes. you can create either an "alias" or a "virtual directory". On the trayIcon go to Apache - > alias directories -> add an alias – Jeff Sep 13 '17 at 15:05
-
try editing the apache configuration files – Yash Kumar Verma Sep 13 '17 at 15:06
-
[here's a simple explanation I've found as first hit](http://www.techrepublic.com/blog/smb-technologist/create-aliases-on-your-wamp-server/) – Jeff Sep 13 '17 at 15:09
-
@Jeff Thanks, aliases was exactly what I was hoping for – binaryfunt Sep 13 '17 at 15:18
-
Virtual hosts is what you need to look at See https://stackoverflow.com/questions/23665064/project-links-do-not-work-on-wamp-server/23990618#23990618 – RiggsFolly Sep 14 '17 at 10:50
-
@RiggsFolly I disagree, Aliases was what I was after. And much simpler than the lengthy highest-voted Virtual Host answer in the marked duplicate – binaryfunt Sep 14 '17 at 12:11
-
It takes 2 minutes to create a Virtual Host in WAMPServer 3 – RiggsFolly Sep 14 '17 at 19:08