![]() PHP provides several functions for reading and modifying run-time configuration directives. **If set to syslog, it will send errors to the system log. *Change to 0 for web-facing servers as a security measure. Here are some of the more common directives relevant to logging. You can find a full list of directives on the PHP documentation site. Here’s where you can find your php.ini file in common distributions of Linux. There may be several different php.ini files on your system depending on whether you’re running PHP on the command-line interface (CLI) or behind a web server such as Apache or NGINX. Default Configurationīy default, the configuration pertaining to errors is found in the following directives within the configuration file php.ini. These settings are useful to review if you’re setting up a new server or trying to figure out if logging is configured on a server someone else has set up. Let’s start by reviewing how the PHP engine can be configured to display and log error output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |