RedHat/Fedora 中是否有 /users/www-data 类型目录?
我正在尝试在我的 Fedora 服务器上设置 web2py,并且为 Debian 编写的说明告诉我将其安装在 /users/www-data 目录中。我意识到 Fedora 使用默认的“apache”用户来运行 Apache,Debian 使用“www-data”用户,但我的机器上没有相应的 /users/apache 目录...
I'm trying to setup web2py on my Fedora server, and the instructions, written for Debian, are telling me to install it in the /users/www-data directory. I realize that Fedora uses a default 'apache' user for running Apache, and Debian uses a 'www-data' user, but there's no corresponding /users/apache directory on my machine...
Here are the instructions
http://web2py.com/book/default/section/11/2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不需要严格遵循这些说明,尤其是与文件系统路径相关的说明。您可以将文件系统中的内容粘贴到适合您的系统的位置,或者只是您想要放置的位置。例如,如果您确实愿意,您可以将内容粘贴在 /usr/local/www 下,您只需要创建该目录并确保更改与 web2py 配置相关的 Apache 配置文件系统路径以匹配该位置而不是文档中的位置举个例子。
You aren't expected to follow the instructions religiously, especially in relation to file system paths. You stick stuff in the file system where appropriate for your system, or simply where you feel like putting them. You could for example stick stuff under /usr/local/www if you really wanted to, you would just need to create the directory and ensure that Apache configuration file system paths related to web2py configuration are changed to match that location instead of what the documentation gave as an example.
这需要测试,但可能有用: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-fedora.sh
This needs to be tested but may be useful: http://code.google.com/p/web2py/source/browse/scripts/setup-web2py-fedora.sh