Open PHP Security Mode (note that PHP5.3 will no longer have safe mode)
The Safe mode of turning PHP on or off is taking advantage of the Safe_mode option in php.ini:
The code is as follows
Copy Code
Safe_mode=on (using
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
(1) Open PHP security mode
PHP's Safe mode is a very important embedded security mechanism that can control functions in PHP, such as System (),At the same time, a lot of file operation functions are controlled by permissions, also do not allow
(1) Open PHP security mode
PHP's Safe mode is a very important embedded security mechanism that can control functions in PHP, such as System (),
At the same time, a lot of file operation functions are controlled by permissions, also do not allow
(1) Open PHP Safe modePHP's security model is a very important embedded security mechanism to control some functions in PHP, such as System (),At the same time, a lot of file operation functions have permission control, also does not allow the files
Compiling the source package requires./configure then compile a. so fileOne less error packetInstall packageNormal displayThe LS directory has a./configure fileQuerying module LocationsEditing a configuration fileEditing a configuration fileIncrease
Apache configuration file httpd.conf Chinese detailed## The configuration file based on the NCSA server is written by Rob McCool, Longzi translation## Apache Server master configuration file. Includes directory settings for server directives.# More
PHP SAFE MODE restriction in effect problem
When Safe_mode is set to on,php, the owner of the current script is checked by the file function or its directory to match the owner of the file that will be manipulated. Example:-rw-rw-r--1 Rasmus
When Safe mode is open, the functionality of the following list of functions will be limited:
ChDir, Move_uploaded_file, Chgrp, Parse_ini_file, Chown, rmdir, copy, rename, fopen, require, highlight_file, s How_source, include, symlink, link, touch,
Secure PHP Security Configuration
Date Created: 2001-11-12 update: 2003-08-06
Article Properties: Original
Article Source: http://www.xfocus.net
Article submission: san (san_at_xfocus.org)
Finishing: San
Version: 0.02
Date Created:
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.