137th Gebirg wrote:So, my question is this - is there some command-line option that I can specify in the PHP code that will force the application to be "owned" by the user currently logged in, rather than "SYSTEM" or "LOCAL SERVICE", preserving preferences and settings integrity on a user-by-user basis?
No, there is not. Once started, you cannot change the owner of the process.
But you can solve it anyway: the reason for the user being "SYSTEM" or "LOCAL SERVICE" is due to starting apache as a "Windows Service" on startup.
If you don't do so (remove the service from the list of services or disable it), you may start apache manually AFTER you have logged in. Simple call "apache.exe" from the apache\bin folder. The process "Apache" is then running as user "blabla" (your userid) and not as user "SYSTEM".
If you dont like to start Apache manually, you may add an appropriate entry to the Autostart Folder of your personal Explorer - then, Apache will also run with your userid instead of SYSTEM.
Simply avoid running Apache as a Service - that's it.