For security, we need to use specific users and user groups to run the web server. In accordance with normal practice, we are thrown back to use the www user group. The www user to run the web server, whether it is nginx or apache, we can do this.
The server running on the www user needs to read various resources of the website root directory, including dynamic scripts, such as php scripts, or html, css, javaScript and other files. Of course, we can also execute special scripts by switching to other users in the php script, which is the same as switching users in shell scripts.
What happened when nginx executed PHP code? Share it with you later
Set website root permissions
chown -R www.www /data/wwwroot/# Modify the user and user group of the website root directory
find /data/wwwroot/-type d -exec chmod 755 {} \\; #The permissions of the directory is 755
find /data/wwwroot /-type f -exec chmod 644 {} \\; #文件's permission is 644
If www.www does not exist, you need to create it first
Yesterday I received the zabbix alarm email, the usage rate of a servers /home directory re
1. Comparison of several file systems (1) support the file system in the Linux system: Ext2 second e
One User Profile 1 User Information File /etc/passwd Lets open this file to see There
Command (command) information detailed This article address: http://blog.csdn.net/caroline
Problems that newbies may encounter when adding users and deleting users in Linux
Happy experience of installing Ubantu under Windows
Linux mount mountcsi, ntfs, nfs through mount
How to install and uninstall the linux installer
The difference between setting the environment variable configuration file under Linux
Linux system transfer files between
How does Linux extend the XFS file system?
How to open Win10 Notepad? What are the ways to open Notepad
How does the win7 system close multiple identical processes with one click?
Two strokes make the new version of the Web Thunder "walking like a fly"
Uniform Word file content format search and replace to help you busy
Win7 achieves multiple accounts and enjoys different drive letters.
Win7 system IE page crash solution
Windows XP implements a single page to print multiple pictures.
Process Management Helper Starter helps you find system faults
How to solve the problem that win10 start menu disappears or can't open