Gallery
CalInnovate Toolkit
Share
Explore
Web development [DRAFT]

icon picker
Pantheon gotchas

Last edited 208 days ago by System Writer

Troubleshooting

Pantheon uses Nginx instead of Apache. This is only relevant when dealing with code that normally would go in an .htaccess file.
Pantheon uses MariaDB instead of MySQL. Switching between the two should be seamless unless you’re writing raw queries.
. Password reset and other system emails won’t be delivered reliably otherwise.
You may see 504 Target Not Responding on the first visit to non-production environments in the morning. and will go away on refresh.

Debugging

PHP debugging

Pantheon’s PHP logs logs/php-error.log only capture errors. No warnings, no notices.
Use syslog(LOG_ERROR, "My awesome message") in php code to log
To monitor you can use ssh and tail -f logs/php-error.log
These errors should also be logged to the Pantheon dashboard real time. (See “Errors” in the sidebar)

Reference


WP debugging

If this is set in wp-config.php then errors are also logged to wp-content/debug.log
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );

Other WP debugging resources

Note there is no Terminus command to access logs
←- doesn’t have a parameter for severity

Nginx debugging

nginx-access.log

Local development with Lando

Updating Docker can bork Lando. If that happens, quit Docker and

Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.