Home  >  Article  >  Backend Development  >  13 Security

13 Security

WBOY
WBOYOriginal
2016-07-30 13:30:22963browse

Security issues involve many aspects. Here we record the file permission issues. These are the basics and are used as a review.

File Permissions

Generally speaking

Directory permissions are 755

PHP files: 600                                                                                                                                                                                                                                                            If the server requires write permission, others must set permission 7, such as the cache directory.

templetes require higher permissions during template installation, but they must be restored to the appropriate permissions after installation.

r: It is readable for files and browsable for directories.

w: It is writable for files. It can create, delete, modify and move directories.

x: It is executable for files and it is possible for directories. Enter

The above has introduced 13 Security, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

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