akkapolk
akkapolk

Reputation: 594

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

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

Upvotes: 4

Views: 1896

Answers (1)

akkapolk
akkapolk

Reputation: 594

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

Upvotes: 4

Related Questions