是否可以让 WAMP 以用户 [myself] 而不是本地 SYSTEM 的身份运行 httpd.exe? [英] Is it possible to have WAMP run httpd.exe as user [myself] instead of local SYSTEM?

查看:19
本文介绍了是否可以让 WAMP 以用户 [myself] 而不是本地 SYSTEM 的身份运行 httpd.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 WAMP 使用 mod_wsgi 在 apache 上运行 django 应用程序.

I run a django application over apache with mod_wsgi, using WAMP.

某个 URL 允许我流式传输图像文件的内容,其路径存储在数据库中.

A certain URL allows me to stream the content of image files, the paths of which are stored in database.

文件可以位于本地机器或网络驱动器下(\\my\network\folder).

The files can be located whether on local machine or under network drive (\\my\network\folder).

使用开发服务器 (manage.py runserver),我在读取和流式传输文件时完全没有问题.

With the development server (manage.py runserver), I have no trouble at all reading and streaming the files.

使用 WAMP 和网络驱动器文件,我得到一个 IOError :显然是因为 httpd 实例在所述驱动器上没有读取权限.

With WAMP, and with network drive files, I get a IOError : obviously because the httpd instance does not have read permission on said drive.

在任务管理器中,我看到 httpd.exeSYSTEM 运行.我想告诉 WAMP 以 [myself] 身份运行服务器,因为我对共享文件夹具有读写权限.(最终,生产服务器应该由具有权限的www-admin"用户运行)

In the task manager, I see that httpd.exe is run by SYSTEM. I would like to tell WAMP to run the server as [myself] as I have read and write permissions on the shared folder. (eventually, the production server should be run by a 'www-admin' user having the permissions)

在驱动器号(例如 Z:)上映射网络共享文件夹根本无法解决此问题.

Mapping the network shared folder on a drive letter (Z: for instance) does not solve this at all.

httpd.conf 中的 User/Group 指令似乎对 Apache 的行为没有任何影响.

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

我也注册过:我尝试复制 HK_CURRENT_USER\ 下的 HKLM\[...]\wampapache 注册表项并重命名原始项,但随后当我 cmd 这个时似乎没有找到新密钥

I've also regedited : I tried to duplicate the HKLM\[...]\wampapache registry key under HK_CURRENT_USER\ and rename the original key, but then the new key does not seem to be found when I cmd this

> httpd.exe -n wampapache -k start

或者当我运行 WAMP 时.

or when I run WAMP.

我的想法已经用完了 :)

I've run out of ideas :)

有人遇到过同样的问题吗?

Has anybody ever had the same issue?

推荐答案

Win+R, services.msc

Win+R, services.msc

编辑 wampapache 和 wampmysqld 以作为某个用户登录.

edit wampapache and wampmysqld to log on as some user.

托盘图标是net start wampapache"和net start wampmysqld"的便捷前端

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

这篇关于是否可以让 WAMP 以用户 [myself] 而不是本地 SYSTEM 的身份运行 httpd.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆