是否有可能有WAMP运行httpd.exe为用户的本地系统[自己]呢? [英] Is it possible to have WAMP run httpd.exe as user [myself] instead of local SYSTEM?

查看:147
本文介绍了是否有可能有WAMP运行httpd.exe为用户的本地系统[自己]呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行超过阿帕奇Django应用程序的mod_wsgi ,使用WAMP。

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.

该文件可以位于无论是在本地机器或在网络驱动器( \\\\我\\网络\\文件夹)。

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.exe 系统运行即可。我想告诉WAMP运行服务器[自己]正如我在共享文件夹的读写权限。 (最终,生产服务器应该由具有权限的万维网管理员用户的身份运行)

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 似乎没有对Apache的行为,任何形式的影响。

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

我也regedited:我试图复制 HKLM \\ [...] \\ wampapache 下的注册表项 HK_CURRENT_USER \\ 和重命名原始密钥,但新的密钥似乎并不当我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。

我已经江郎才尽了:)

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

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运行httpd.exe为用户的本地系统[自己]呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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