So here's my problem...
I have several older machines sitting around on my LAN and a lot of automated tasks to run. On these machines I've created virtual machines that connect to the outside world via bridged adapter. I want everything to run the same version of PHP tools without having to manually worry about updating each machine's copy. Ultimately I'd like to run dozens of these virtual machines.
Right now each tool has it's own log directory. And I backup my current scripts from my dev machine to a NAS drive but I don't copy the log files (or directory) up to the NAS drive. I have my virtual machines mount the folder on the NAS drive where the backup is.
The code appears but no log directory is present. When I attempt to use mkdir to create a log directory it creates it on the NAS drive. So far I've only been able to mount the NAS drive as root so even if I wanted to store log files on the NAS (which I don't) I would still have a permissions problem as the tools run the Apache/PHP user via a curl cronjob.
My question is this: Can I keep the NAS drive mounted but create a local log directory with the proper permissions (i.e. 777)? Also, does anyone out there know if I will run into issues - like collisions - if I mount the same folder on the NAS drive from dozens of virtual machines each running the same cronjob at the same time?
I'm running Ubuntu 12.04 desktops on the machine and the virtual machines are 12.04 server via VirtualBox. If there I will run into issues with the NAS and too many mount connections (I've only attempted 3 simultaneous mounts at this time) then I may have each machine keep its own local copy up to date and have each virtual machine mount the directory of its host but that isn't currently an ideal solution. Either way I'd like the virtual machines to have their own log files stored locally.