Skip to content

How to View the Error Log and Enable Debug in WordPress on Cloudways

On this page

Last updated: · By

Short answer: an application’s error log on Cloudways is in the platform under Monitoring > Logs > Error Logs, next to Access Logs. The platform shows the last 1,000 entries; for the full history, connect over SSH or SFTP to the application’s logs folder. For WordPress’s own PHP errors, turn on WP_DEBUG in wp-config.php, preferably writing to a file and not displaying errors to visitors.

⏱ Time needed: 5–15 minutes · Difficulty: easy (platform) to intermediate (SSH and wp-config) · Last checked against the official documentation: 6 Nov 2026

What an error log and an access log are

Before you open any files, it helps to understand which logs exist and what each one tells you.

A log is a text file the server writes a line to for every event. There is no guessing in it: it says what happened, when and to whom. When a site returns a white screen, a 500 error or behaves strangely, the log is usually where the cause shows up in a single line.

LogWhat it recordsWhen to open it
Access LogsEvery request to the site: date, IP, the requested URL, response code, user-agentSuspected bots, attacks, broken redirects, “who visited and when”
Error LogsErrors and warnings from the web server and PHP (Fatal error, Parse error and so on)A 500 error, a white screen, a plugin that broke after an update
WordPress debug.logErrors, warnings and notices from inside WordPress, the theme and pluginsWhen the Error Log is not enough, or when you are developing and testing a plugin

On Cloudways the access log is split into three: dynamic requests (PHP, handled by Apache), static files (images, CSS, JS, served by Nginx), and a PHP log with process details, path, CPU and memory.

What should you prepare before you start?

  • Access to the Cloudways platform with permission for the application.
  • For viewing over SSH or SFTP: the server’s Master Credentials or the application’s SFTP user. See connecting over SSH or connecting with FileZilla.
  • Take a backup of the application before editing wp-config.php. A one-character mistake in that file takes the site down.
  • Times in the logs are shown in UTC (the platform also shows the offset from your local time). Convert to your own time zone when you compare them with an incident.

How do you view logs from the platform?

The quick way, with no software. It suits most checks.

  1. In the side menu click Flexible and then My Applications, and choose the application.
  2. In the left menu click Monitoring, and then Logs.
  3. Choose Access Logs or Error Logs.
The Access Logs screen with requests and responses
Access Logs in the platform: the latest requests to the site

This guide describes the Flexible platform. On Cloudways Autonomous the logs are under the application > Intelligence > Logs, and only recent entries are shown (according to the official documentation, which I have not checked against the current Autonomous interface).

Access Logs: three tabs

Access Logs has three tabs. BACKEND shows dynamic requests (Apache, in the older documentation), STATIC shows static files (Nginx), and PHP shows PHP processes. At the top it says how many entries were found, and each row has a date, time, IP and the request.

  • The search icon finds text, for example wp-login.php or a specific IP.
  • The filter icon narrows by request method (GET, POST) or response code (200, 301, 404). Filtering only works on values that exist in the last 1,000 entries.
  • Refresh pulls in the new entries.

Error Logs

Here you see web server errors, each with a date, time and message. Filtering works by PHP error type (Fatal error, Parse error and so on), again only within the last 1,000 entries.

How do you read a line? Look for three things: the error type (a Fatal takes the page down, a Warning usually does not), the file path, and the line number. If the path contains wp-content/plugins/plugin-name, you have found the suspect.

How do you get to the full logs over SSH or SFTP?

The platform shows only the last 1,000 entries of each type. On a busy site that can be just a few minutes back. For a longer history you go to the files themselves.

Over SSH

  1. Connect to the server over SSH, from the platform’s built-in terminal or from your computer.
  2. Go to the application’s logs folder. You find the folder name (something like abcdefghij) in the application details in the platform.
  3. List the files, then follow a file in real time.
cd applications/<application_folder_name>/logs
ls -l
tail -f <log-file-name>

tail -f shows new lines the moment they are written. This is especially useful when you reproduce a problem: open the log, load the problem page in the browser, and watch the error appear. Exit with Ctrl+C. To search inside a file, grep "Fatal" file-name saves a lot of scrolling.

Over SFTP

  1. Connect with an SFTP client such as FileZilla.
  2. Navigate to /applications/<application_folder_name>/logs.
  3. Download the log file to your computer and open it in a text editor.

According to Cloudways’ current documentation, full access logs are also in the /home/[SERVER_HOST]/[APP_ID]/tmp folder. If you need a long date range, for example for a security review, you can also ask support: give them the application name, the server IP and the date range, and they prepare a zip file. See how to open a ticket properly.

WP_DEBUG: how to enable Debug in WordPress

When the Error Log is not enough, WordPress can write its own log with all the errors, warnings and notices from plugins and the theme.

WP_DEBUG is a switch in the wp-config.php file that turns on WordPress’s debug mode. On its own it displays errors on screen. Combined with two more switches you decide where the errors go:

SettingWhat it doesOn a live site
WP_DEBUGTurns debug mode on (true) or off (false)true only while testing
WP_DEBUG_LOGWrites the errors to the file wp-content/debug.logtrue, so you can read the errors in the file
WP_DEBUG_DISPLAYShows the errors inside the pagefalse, so visitors do not see paths and details

The Cloudways documentation also shows WP_DEBUG_DISPLAY set to true, and explicitly warns not to leave it that way on a live site because it exposes sensitive information. My recommendation for a site that has visitors: log to a file, with no display.

Step-by-step activation

  1. Take a backup of the application, or work in a staging environment if the problem reproduces there.
  2. Connect over SFTP or SSH and navigate to applications/<folder_name>/public_html, where wp-config.php lives (unless you moved it).
  3. Find the line define('WP_DEBUG', false);.
  4. Replace it with the three lines below. If one of them already exists in the file, edit it instead of adding a duplicate.
  5. Save the file (over SFTP: upload it back; in nano: Ctrl+O, Enter, then Ctrl+X).
  6. Reproduce the problem in the browser, then read the log with cat wp-content/debug.log or tail -f wp-content/debug.log.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

The lines must appear before the line /* That's all, stop editing! */. If you do not want to touch code, you can use the WP Debugging plugin from the WordPress repository, which turns the same settings on and off from the dashboard.

Turn it off when you are done

This is the step everyone forgets. Set WP_DEBUG back to false, delete the lines you added, and delete debug.log. A debug file left running keeps growing and takes up disk space, and in some cases it can be reached from the browser, exposing paths and internal information. For developers: according to the WordPress documentation you can give WP_DEBUG_LOG a file path instead of true, and keep the log outside the public folder.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

What do the common errors in the log mean?

What the log saysWhat it meansWhat to do
PHP Fatal error: Allowed memory size ... exhaustedPHP exceeded the memory limitRaise memory_limit; see PHP settings, and check which plugin is using it
Maximum execution time of ... exceededA script ran longer than allowedRaise the execution time or split a large import
PHP Parse error: syntax errorA syntax error in the code, usually after a manual editFix the file named in the error or restore from a backup
Call to undefined functionA plugin that needs a different function, extension or PHP versionCheck PHP version compatibility and update the plugin
Error establishing a database connectionWordPress cannot connect to the databaseSee the guide to the database connection error

Common mistakes and troubleshooting

The log in the platform is empty or short: the platform shows only the latest entries. If the problem happened a few hours ago on a busy site, it is no longer there. Go to the files over SSH or SFTP.

You turned on WP_DEBUG and no debug.log was created: make sure the lines come before “stop editing”, that there is no duplicate definition further down the file, and that the problem was actually reproduced after you saved. If there is a write permissions problem, resetting permissions from the platform (Reset Permissions in the application settings) usually helps.

Visitors see Warning messages at the top of the page: you left WP_DEBUG_DISPLAY on, or WP_DEBUG is on without DISPLAY set to false. Fix it right away.

debug.log is full of Deprecated warnings: these are notices about old code that still works. They are not the cause of the 500 error. Look for Fatal lines.

The time in the log does not match the incident: logs are in UTC.

You want to know about errors before your customer does: set up CloudwaysBot alerts, and for code-level performance analysis connect New Relic.

Sources

The official sources this page is based on (checked on 7 Nov 2026):

Frequently asked questions

Where is the WordPress error log on Cloudways?

In the platform, under Monitoring > Logs > Error Logs of the application. The full files are in the applications/app_name/logs folder on the server. WordPress’s own debug log is written to wp-content/debug.log only after you turn on WP_DEBUG_LOG.

How many log entries does the platform show?

The last 1,000 entries for each log type. For a longer period, connect over SSH or SFTP, or ask support for a file covering a date range.

Is it OK to enable WP_DEBUG on a live site?

For a short time, and only with WP_DEBUG_DISPLAY set to false, so errors are written to a file and not shown to visitors. Cloudways recommends using debug mainly for testing and turning it off right afterward.

Can I enable Debug without editing wp-config.php?

Yes. The WP Debugging plugin lets you turn the debug settings on and off from the WordPress dashboard. It is convenient if you do not work with SFTP, but you still need to remember to turn it off.

What is the difference between the Access Log and the Error Log?

The Access Log records every request to the site, even when everything is fine. The Error Log records only errors and warnings. For bots and attacks look at the Access Log; for a 500 error or a white screen look at the Error Log.

Do error logs take up disk space?

Yes. An application’s logs count toward its file size, and a debug.log that was left on keeps growing over time. Delete it when you finish testing.

Official source: How to View Application Logs Using the Cloudways Platform, How to View Application Logs via SSH/SFTP, How to Enable WordPress Debug Mode (Cloudways Knowledge Base), and Debugging in WordPress (WordPress documentation). Written and checked by Asael Dreyer · Updated: 6 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL