Cloud Service >> Knowledgebase >> WordPress >> How to View Access and WordPress Error Logs
submit query

Cut Hosting Costs! Submit Query Today!

How to View Access and WordPress Error Logs

Checking acce­ss logs and WordPress mistake logs is critical for spotting proble­ms and observing your website's we­ll-being. Depending on your host surroundings and tools, you can re­ach these logs in many ways:

1.Via cPanel

Access Logs:

Log in to your cPanel account.

Navigate to the "Metrics" section.

Click on "Errors". This will display the most recent 300 error log entries for your site.

WordPress Error Logs:

Go to "File Manager" within cPanel.

Navigate to the wp-content directory.

Look for an error_log file. This file logs errors specific to your WordPress site.

-  Via FTP/SFTP

Access Logs:

Connect to your server using an FTP/SFTP client.

Navigate to the root directory of your website.

Look for an access.log file in a logs folder or similar directory.

WordPress Error Logs:

Connect to your server using FTP/SFTP.

Go to the wp-content directory.

Check for an error_log file. If not present, you may need to enable logging in WordPress.

 

-  Via WordPress Admin Dashboard

While WordPress does not provide direct access to logs from the admin dashboard, you can use plugins to monitor errors:

WP Debugging

Query Monitor

These wordpress plugins help you view and manage error logs from the WordPress admin interface.

Via the Hosting Provider's Control Panel

Many hosting providers offer custom control panels with log viewing options:

Access Logs:

Log in to your hosting provider's control panel.

Look for sections such as "Logs" or "Site Statistics".

WordPress Error Logs:

Check for an "Error Logs" section within the control panel where you can view PHP and WordPress errors.

 

Manually Enable Debugging in WordPress

If you need to enable error logging manually:

Open the wp-config.php file located in the root directory of your WordPress installation.

Add or update the following lines to enable debugging:

 

Save the file. Errors will be logged to the wp-content/debug.log file.

2. Via Command Line (SSH)

For those with SSH access:

Access Logs:

- Connect to your server via SSH.

- Check common log locations such as /var/log/apache2/access.log or /var/log/nginx/access.log.

WordPress Error Logs:

- Navigate to your WordPress installation directory.

- Look for an error_log file within wp-content or other directories.

 

Using these­ steps lets you monitor your site's pe­rformance and fix issues. Are you running into problems or ne­ed more help? Consider touching base­ with your site's cloud hosting team.

Cut Hosting Costs! Submit Query Today!

Grow With Us

Let’s talk about the future, and make it happen!