How to Set up and Use WordPress Error Log? - PowerPoint PPT Presentation

About This Presentation
Title:

How to Set up and Use WordPress Error Log?

Description:

When you develop the website, it is not a bad idea to control the possible errors or check other information the server replies to your queries. One of the best ways to do that is to set up and read the WordPress logs. In the article, we are going to explain what are the types of log files, and how to set them up on different servers and read them to analyze the different aspects of your websi – PowerPoint PPT presentation

Number of Views:2
Slides: 6
Provided by: aditiguleria
Category:
Tags:

less

Transcript and Presenter's Notes

Title: How to Set up and Use WordPress Error Log?


1
How to Set up and Use WordPress Error Log?
2
How to set up WordPress Error Logs?

There are two main server types Apache and
Nginx. Lets see how to set up a WordPress error
log for each of them.Apache is a powerful
open-source solution for web servers. The logging
capabilities in Apache are very flexible. Most
log setting options are applicable to any
operating system, but some of them are specific
only for Unix or Linux.Apache by default is
pretty well configured for logging ones site.
The standard httpd.conf file must have a section
of logs with detailed comments for each
directive.
3
Apache WordPress Error Log
  • The WordPress error log contains messages from
    Apache like errors, notifications, warnings, etc.
    This log is very useful for finding and fixing
    server-side problems. It is written in the sites
    Apache config file usually placed in
    /etc/apache/sites-available/ folder. Lets see
    how to set up it
  • If you want to store all information about errors
    in one log, this directive will suffice. However,
    you can specify a WordPress error log file for
    each domain.

4
Types of Errors
  • The following error levels are defined in Apache
  • emerg emergency the system does not function
  • alert the error must be immediately corrected
  • crit is a critical error
  • error
  • warn warning
  • notice notification (normal operation)
  • info information message
  • debug debug message.

5
WordPress Error Log Nginx
  • Log files are the first place to look for errors.
    Especially if it relates to a web server. In
    Nginx, there are only two main logs error log
    and access log.
  • Logging of the Nginx errors occurs in a specific
    file, stderr, or Syslog. It collects all the
    errors that occurred during the operation of the
    webserver. By default, it is enabled globally
  • To log only certain errors, you need to place a
    directive in the HTTP, server, stream, or
    location section. And so you can only log
    critical errors and alarms
Write a Comment
User Comments (0)
About PowerShow.com