且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Linux下Apache用户权限的问题

更新时间:2022-05-24 01:52:03

这更像是一个Linux用户的问题,Apache操作Linux下的东西,总要有个用户授权,我一直在找这个授权在什么地方。
上网搜,搜到的居然都是Apache限制http访问的授权
于是就苦找了一下,K.O.!

在httpd.conf里有apache的执行用户和用户组, 
<IfModule !mpm_netware_module> 

# If you wish httpd to run as a different user or group, you must run 
# httpd as root initially and it will switch.  

# User/Group: The name (or #number) of the user/group to run httpd as. 
# It is usually good practice to create a dedicated user and group for 
# running httpd, as with most system services. 

User nobody 
Group nobody 
</IfModule>









本文转自 今天我不乖 51CTO博客,原文链接:http://blog.51cto.com/buguaisp2/169358,如需转载请自行联系原作者