Is it possible to have WAMP run httpd.exe as user [myself] instead of local SYSTEM?

南笙酒味 提交于 2019-11-28 12:16:26

Win+R, services.msc

edit wampapache and wampmysqld to log on as some user.

the tray icon is a convenient front end to "net start wampapache" and "net start wampmysqld"

The User/Group directives in httpd.conf do not seem to have any kind of influence on Apache's behaviour.

httpd.exe is started by the root user (this is probably why you see it running under SYSTEM). The user and group lines in httpd.conf determine what user the child processes (that httpd spawns) will run under. These forks are what actually handle page requests, etc. so it is possible that your configuration is already doing what you want it to, it is just unclear from looking at task manager.

You could also try using runas to start WAMP/Apache, though your mileage may vary.

I've just found that executing httpd.exe myself works for me... I just loose all the funky WAMP tray icon, and the "restart apache" menu item, really handy whenever I update my application code...

I'll have to make do with this for the moment...

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!