Home  >  Article  >  Backend Development  >  php资料权限

php资料权限

WBOY
WBOYOriginal
2016-06-13 13:12:321212browse

php文件权限
php文件权限

linux下 PHP安全又可以运行,权限多少? chmod

文件夹又设为多少

------解决方案--------------------
文件夹一般设置为755或者664,详细区别见:
http://www.zzee.com/solutions/linux-permissions.shtml#zzee_link_6_1077830297

如果你有一个php文件,只希望是机器运行,如cron程序,用:
chown root:root /var/www/html/your-page.php
或者只有管理员可以运行:
chown your-user-name:users /var/www/html/your-page.php

Statement:
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