Self-hosting on AWS

Access Logs 

/var/log/nginx/

Error Logs

/var/log/php-fpm/

Managed Hosting

When you access the server as amimoto-user through SSH or SFTP, you can check following log directories.

Access Logs

~/amimoto-user/log/nginx/

Error Logs

~/amimoto-user/log/php/

Log File Descriptions

NGINX Log Files

access.log, {domain name}.access.log

General access logs to the server.

The server records all accesses to dynamic files, URLs or static files (e.g. CSS, HTML, JavaScript, image files) to this file.

backend.access.log, {domain name}.backend.access.log

Logs run by PHP scripts.

The server records scripts logs when NGINX runs processes behind the reverse proxy for dynamic files.

error.log {domain name}.backend.access.log

Logs for Nginx error.

Any error occurs on NGINX or its processes.

badactor.log

It's a particular kind of log.

If the server detects HTTPoxy vulnerabilities, it records activity when it occurs. Usually, it's empty, which is a good thing.

https://www.nginx.com/blog/mitigating-the-httpoxy-vulnerability-with-nginx/

PHP-FPM

error.log

The server records errors of php-fpm.

www-error.log

Scripts error logs of PHP scripts when errors occur.

www-slow.log

Records processes to the file when PHP scripts were taking sixty or more seconds process. This can be debugging performance issues such as memory leaks.

Did this answer your question?