Last updated: · By Asael Dreyer
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.
| Log | What it records | When to open it |
|---|---|---|
| Access Logs | Every request to the site: date, IP, the requested URL, response code, user-agent | Suspected bots, attacks, broken redirects, “who visited and when” |
| Error Logs | Errors 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.log | Errors, warnings and notices from inside WordPress, the theme and plugins | When 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.
- In the side menu click Flexible and then My Applications, and choose the application.
- In the left menu click Monitoring, and then Logs.
- Choose Access Logs or Error Logs.

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.phpor 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
- Connect to the server over SSH, from the platform’s built-in terminal or from your computer.
- Go to the application’s logs folder. You find the folder name (something like
abcdefghij) in the application details in the platform. - 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
- Connect with an SFTP client such as FileZilla.
- Navigate to
/applications/<application_folder_name>/logs. - 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:
| Setting | What it does | On a live site |
|---|---|---|
WP_DEBUG | Turns debug mode on (true) or off (false) | true only while testing |
WP_DEBUG_LOG | Writes the errors to the file wp-content/debug.log | true, so you can read the errors in the file |
WP_DEBUG_DISPLAY | Shows the errors inside the page | false, 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
- Take a backup of the application, or work in a staging environment if the problem reproduces there.
- Connect over SFTP or SSH and navigate to
applications/<folder_name>/public_html, wherewp-config.phplives (unless you moved it). - Find the line
define('WP_DEBUG', false);. - Replace it with the three lines below. If one of them already exists in the file, edit it instead of adding a duplicate.
- Save the file (over SFTP: upload it back; in nano: Ctrl+O, Enter, then Ctrl+X).
- Reproduce the problem in the browser, then read the log with
cat wp-content/debug.logortail -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.
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).
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
Start a free trial server, no credit card. When you move to a paid plan, the code ASAEL takes 30% off your bill for the first three months.
The link fills in the code on the signup form. Just make sure it shows up.
What do the common errors in the log mean?
| What the log says | What it means | What to do |
|---|---|---|
PHP Fatal error: Allowed memory size ... exhausted | PHP exceeded the memory limit | Raise memory_limit; see PHP settings, and check which plugin is using it |
Maximum execution time of ... exceeded | A script ran longer than allowed | Raise the execution time or split a large import |
PHP Parse error: syntax error | A syntax error in the code, usually after a manual edit | Fix the file named in the error or restore from a backup |
Call to undefined function | A plugin that needs a different function, extension or PHP version | Check PHP version compatibility and update the plugin |
Error establishing a database connection | WordPress cannot connect to the database | See 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):
- developer.wordpress.org: Debug wordpress
- Cloudways Knowledge Base: How to view application logs via ssh sftp
- Cloudways Knowledge Base: How to view application logs using the cloudways platform
- Cloudways Knowledge Base: How to enable wordpress debug mode
Frequently asked questions
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.
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.
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.
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.
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.
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.
Related guides
- Alerts and CloudwaysBot: server alerts to Slack and email
- How to connect New Relic APM to an application
- How to monitor a server: CPU, RAM, disk and htop
- How to monitor an application: traffic, PHP, database and Cron
- All guides on this topic: Cloudways monitoring, logs and alerts
- Thinking of switching? The full Cloudways review
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