Home > Backend Development > PHP Tutorial > apache 如何设置文件夹的读写权限

apache 如何设置文件夹的读写权限

WBOY
Release: 2016-06-13 10:23:46
Original
1135 people have browsed it

apache 怎么设置文件夹的读写权限?
我有个PHP的项目,为了安全 有些文件夹要设为只读的,有些我设为可写的。请问各位大侠怎么在 httpd.conf这个文件里面配制啊!

------解决方案--------------------
用服务器上用命令修改,或者用php的函数修改~
------解决方案--------------------

PHP code
chmod($file,0777);  //第二个参数为模式代码<br><font color="#e78608">------解决方案--------------------</font><br>在Linux下可以敲命令行:<br># chmod 0777 /usr/bookdir<br>httpd.conf文件是Apache服务的相关配置信息,你为什么老是要在那里面改呢?<div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template