You can check the path of logs on server wide with below path:
/var/log/apache2/error_log This is for Debian/Ubuntu is used;
/var/log/httpd/error_log If Apache is used for CentOS/RHEL/CloudLinux is used;
/var/log/nginx/error.log If nginx is used only;