For PHP developers, once a product is put into use, the display_errors option should be turned off immediately to avoid hackers being hacked by the path, database connection, data table, and other information that these errors reveal. However, when
For PHP developers, once a product has been put into use, the display_errors option should be turned off immediately to avoid hacking attacks for information such as the path, database connection, data sheet, etc. that were revealed by these errors.
PHP-FPM ConfigurationUnlike lamp, in the LNMP architecture, PHP-FPM exists as an independent service, and since it is an independent service, he has his own configuration file. The configuration file for PHP-FPM is/usr/local/php-fpm/etc/.Pool (pool)
In PHP, the error log is stored in the System log (Windows system), PHP log
"Log errors to the system log"
In php.ini, set Error_log to:
Copy the Code code as follows:Error_log = syslog
Or, use the Ini_set () function setting at run time.
"Example 1
Install the PHP runtime environment text tutorial on Windows. 1. download related software httpd-2.2.15-win32-x86-no_ssl.msihttpd.apache.orgdownload.cgimysql-5.1.46-win32.msidev.mysql.comdownloadsphp-5.2.13-W 1. download related
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;
In fact, if you only want to test the php operation rather than the server operation, you can use phpnow and so on, and download is available at home.
In fact, if you only want to test the php operation rather than the server operation, you can use
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.