I am new to Windows and I am trying to figure out what user Apache is running on. In Linux I had a simple command ps aux | grep apache
. How do I find that out in windows? Is it some where in httpd.conf file?
Asked
Active
Viewed 4.4k times
14

Linger
- 14,942
- 23
- 52
- 79

John Harris
- 159
- 1
- 3
- 8
4 Answers
10
By default the Apache services are registered to run as the system user (the LocalSystem account).
The section "Running Apache as a Service" in the help documentation below might help you configure Apache the way that you want to.

David Kartik
- 454
- 4
- 9
9
- Bring up the task manager by pressing Ctrl+Shift+Esc.
- Go to the Processes tab and sort by Image Name. In Server 2012, go to the Details tab and sort by Name.
- Look for apache.exe (or httpd.exe) and check the User Name column.

Mike Sherrill 'Cat Recall'
- 91,602
- 17
- 122
- 185

dwurf
- 12,393
- 6
- 30
- 42
1
In Powershell you can interrogate the registry for the user context the service is running under:
(Get-ItemProperty HKLM:\system\CurrentControlSet\Services\Apache2.4).ObjectName

leancz
- 688
- 5
- 21