Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change run user from nt authority\system to AD user - Apache on Windows

Tags:

php

apache

I check run user as code below.

<?php 
echo(exec('whoami'));
?>


Output, run user is nt authority\system as picture below.

enter image description here


I can't find the user in Apache2.2\conf\httpd.conf as picture below.

httpd.conf

like image 427
akkapolk Avatar asked Sep 17 '25 12:09

akkapolk


1 Answers

Solved.
1. Open Services.
2. Right click on Apache2.2.
3. Click Properties.
4. Click Log On tab.
5. Set user. Services

like image 165
akkapolk Avatar answered Sep 20 '25 02:09

akkapolk