I am using Ubuntu 12.10, and I know that if I place a php file (index.php) under /
var/www, and I visit
localhost:80/index.php, it will work fine.
However, say that I have multiple projects in order folders in directories such as:
What are my alternatives in order to make Apache be able to read those folders? I know I have these possibilities:
Create symlinks (but I haven't been able to find out which permissions/groups should I set and why?)
Add VirtualHosts (I haven't found a resource that will explain how to use VirtualHosts for this situation).
Could anyone tell me what are my possibilities and which one is the best and why?