After configuring IIS 7.5+php (FASTCGI) +mysql on a Windows Server 2008 R2 (x64) server for the previous period, it has been normal to run. Until yesterday, because of online backup MySQL failed to burn.
PHP shows successful execution, but the display of execution time is astronomical-a situation that has been met in a PHP environment that was previously configured Nginx or Apache, simply because the PHP memory limit is too small, or because the timeout time is set too small. However, modify th
Sixth Linux file permissions and directory configuration 6.1Linux user identity and user group record filesEach account can have multiple user group support/ETC/PASSWD user Account/etc/shadow account password/etc/group Group account6.2 PermissionsThe rwx permissions of a file only involve constraints on the contents of the fileThe RWX
VSFTPD There are three ways to sign inAnonymous userLocal userVirtual userThe following describes the configuration of these three types of users separately1. Anonymous usersAfter installing VSFTPD with Yum, modify the configuration file and restart it to use anonymous users to access the# yum-y Install VSFTPD# vi/etc/vsftpd/vsftpd.confAnonymous_enable=yes Open Anonymous User loginAnon_upload_enable=yes allow anonymous users to upload permissionsAnon_mkdir_write_enable=yes allow anonymous users
A directory for a user:
1, if only the R permission, the user cannot access the directory, but can view the files in the directory, but unable to view the properties of the file;
2, if only the X permission, you can enter the directory, but cannot do LS to see which files;
3, if the
Linuxsettings for file and directory permissionsModify File PermissionsIf you want to change the permissions of a file or directory, you can use the chmod command to change the permissions of a file or directory in two ways: mnemonic and octal. • Mnemonic Method:Grammar: u
We create a folder under root and create a file under that folder, so what does the other user have to do with the file's permissions? Let's explore the impact of the parent directory's permissions on the child file.
First, create the test folder with root in the root directory, then create the file file under the Test folder, and the default test folder has
Grammar
chmod (file,mode) parameter description
File required. Specify the files to be inspected.
mode is optional. Specify the new permissions.
The mode parameter consists of 4 digits:
The first number is always 0.
The second number stipulates the permissions of the owner
The second number stipulates the permissions of the user group to which the owner belongs
N
Linux file and Directory permissions interpretation
How to set permissions for Linxu files and directories
Character notation
1) Ls-l: View permissions for all files in the directory
2 chmod u=r File: Assign the current (user user)
file system.Device files: The Linux system sees every device as a fileIv. Managing File PermissionsText Setting methodThe text format of the chmod command is:Format 1:chmod[-r]{[ugoa][+-=][rwxst]} Format 2:chmod[-r]{[ugoa][+-=][ugo]} Description-R: If the operand is a directory, the contents of the permission set {} are recursively applied to all subdirectories in that directory, and the content within {}
this directory, if it cannot be generated, indicates that the directory does not have write permission (2) Use recursive method to check Code implementation:*/Set_time_limit (1000);function check_dir_iswritable ($dir _path) {$dir _path=str_replace (' \ ', '/', $dir _path);$is _writale=1;if (!is_dir ($dir _path)) {$is _writale=0;return $is _writale;}else{$file _hd= @fopen ($dir _path. ' /test.txt ', ' W ');
Start with the php4.4.5 +iis permission set, switch to php5.6.7 after the directory has no write permission, a variety of Baidu after not resolvedphp4.4.5 +iis When IIS Anonymous authentication user is IUSR directory permission is also IUSRPhp5.6.7+iis the anonymous user viewing the site is also IUSR why the permissions given do not work.All kinds of users, chang
-top:0px;border-right:0px; background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; " Border= "0" alt= "c52f3229c08c4c11b98e6a2734747f55" src= "http://s3.51cto.com/wyfs02/M00/71/9E/ Wkiom1xujx-tmnmwaagzv05yni4615.jpg "height=" 550 "/>For example, here we specify a testshare share, then specify the query user Mailuser5 permissions for the share, and then select Analyze.The results show that MAILUSER5 f
Linux, there are three different types of users can access files or directories: The file owner, the same group of users, other users. The owner is typically the creator of the file, and the file owner automatically has read, write, and execute permissions on the file. The owner can allow the same group of users access to the file, as well as the access rights of the file to other users on the system. In this case, every user in the system can access
Copyright Notice:###########################################################################All the contents of this article are from the author Liu Chunque's study summary, without my permission, prohibit the private forwarding and use.qq:1151887353E-mail:[email protected][Email protected]###########################################################################Linuxfile or directory permissions below1.1
, at this time can only set up, let the date in English display: Lang=en_usSeventh column: File name
Third, the importance of Linux permissions
1, protect the function of system filesTypically, system files have only the root administrator read, write, and execute permissions.2. Provide data sharing function for team developmentThe same development team can be set up as the same group of users so that fil
directory to build the site.Workaround 2:It's easy to change the policy type of the directory or file to httpd_sys_content_t.# chcon-t httpd_sys_content_t [file_name | dir_name]# chcon-r-h-t httpd_sys_content_t/wwwYou can then use the Ls-laz command to view the file directory's policy type. (T002)Workaround 3:Turn off SELinux.#setenforce 0Workaround 4:or change the SELinux attribute of the/root/website fil
chmodChange permissions for a file: chmod [mode] File.txtChange permissions for a directory: chmod [mode] DirChange permissions for a directory and its subdirectories: chmod [mode] Dir-rmode = 777 or 752 and so on.The three digits of mode, respectively, indicate the
Chown/bin/chownchown [user] [file or directory] to change the owner of a file or directoryOnly root can change the owner of a file or directoryRoot User:Mkdir/tmpTouch/tmp/test.fileUseradd MEINVpasswd MEINVChown Meinv/tmp/test.fileMEINV Users:Touch/tmp/test.file1Chown Root/tmp/test.file1 failedChgrp/bin/chgrpCHGRP [user Group] [file or directory] change the owning group of a file or directoryGroupadd Studen
Pre-order {By default, Apache's PHP site is htdocs Depending on the actual development requirements, you may want to change the location of this directory}First Step {Open the Apache configuration file,}Step Two {Locate the document root directory, the English name is DocumentRoot Create a new folder under one drive letter and save the suffix php file.Copy the folder path to this, and saveRestart Apache,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.