Apache Error Log Cpanel Location
Contents |
Getting Started Home Page | Knowledge Base 24 X 7 HEROIC SUPPORT 800.580.4985 (1-517-322-0434) Find Answers To Web Hosting Questions SearchSearch Locations of Common Log Files on cPanel Servers Category: Technical Support One
Cpanel Php Error Log
of the nice things about cPanel based servers is the way that they /usr/local/apache/logs/error_log keep the location of key files in the same place across all of the various cPanel versions. Due to this consistency cpanel error log empty one always knows where to look for logs files for all services running on a cPanel server. Apache Apache is the web server that is typically utilized by cPanel. On cPanel servers Apache does
Cpanel Mail Logs
write to a rather high number of logs as each site has its own traffic log. /usr/local/apache/logs/access_log The access_log is used to log all http requests to ether the hostname of the server, requests directed at the servers IPs, or sites that resolve to the server but are no longer hosted on it. /usr/local/apache/logs/error_log On cPanel servers all Apache errors, regardless of site, are logged in the error_log.
/usr/local/cpanel/logs/access_log
/usr/local/apache/domlogs Within the domlogs folder each site on the server will have its own log file. These files will be the fully qualified domain name for the domain, ie domain.com, liquidweb.com. All http traffic to a site will be logged in this log file. Exim Exim is the MTA(Mail Transfer Agent) that cPanel utilizes. Exim has three primary logs, but only two of these logs contain useful information /var/log/exim_mainlog The exim_mainlog contains ALL interactions that exim handles, so both incoming and outgoing mail transactions. /var/log/exim_rejectlog The exim_rejectlog contains all connection attempts that were denied. This information is also logged in the exim_mainlog. For more information on Exim's logs try a Google search for "Exim Cheat Sheet". cPanel Cpanel does log all http traffic to WHM, webmail, and cPanel access. All cPanel logs are located in the /usr/local/cpanel/logs directory. /usr/local/cpanel/logs/access_log This access_log contains all traffic to WHM, cPanel, and webmail over http. /usr/local/cpanel/logs/error_log This error_log contains all errors that occur when accessing a cPanel related site over http or https. FTP Regardless of FTP deamon in use, cPanel does log connections, uploads, and downloads. However, FTP does not have its own log file it is instead threaded into the systemside messages log
DOMAINS WEB DESIGN WEB DESIGN SERVICES CREATE YOUR OWN WEBSITE SITE HOSTING TOOLS MEET US MEET US ABOUT US whm access logs PARTNERS & AWARDS BLOG WE'RE HIRING CONTACT US AMP LOGIN
Cpanel Domain Access Logs
SUPPORT CENTER Search Support Center Product Guides Dedicated Hosting Reseller Hosting KnowledgeBase Website Email Domain whm apache access logs Names Reseller Billing Community Support Browse Questions Ask a Question User Submitted Articles Education Channels Android BoldGrid cPanel DokuWiki Drupal 7 Drupal 8 Everything https://www.liquidweb.com/kb/locations-of-common-log-files-on-cpanel-servers/ Email Joomla 2.5 Joomla 3.1 K2 Magento 1.6 Mambo MediaWiki Moodle Movable Type OpenCart OpenCart 2.0 osCommerce PHP-Fusion PHP-Nuke phpBB phpList Premium Website Builder PrestaShop 1.5 PrestaShop 1.6 SMF Tiki Wiki VirtueMart 3 Web Hosting Manager Website Design WordPress Tools & Resources Email Configuration Blacklist Check Visual DNS Lookup Quick http://www.inmotionhosting.com/support/website/stats-logging/how-to-view-cpanel-error-logs Tagger Icon Sets Favicon Generator Bounce Back Parser What is my IP address? >>Website .htaccess (17)Adobe Flash (2)APIs (2)Backup and Restore (15)Billing (8)Browser Issues (2)Connecting to a Database (5)cPanel (26)cPanel Account Management (16)Cron Jobs (4)Cube Cart (2)Database Setup (5)Database Troubleshooting (6)Domain Management (2)Dreamweaver (12)Drush (2)eCommerce (7)Elasticsearch (4)Fantastico (4)File Management (16)File Manager (6)FTP (10)FTP Client Setup (21)General Server Setup / Management (15)Getting Started Guides (18)Ghost (3)Google Tools (21)How To (23)HTML (2)Image Editing (2)IP Addresses (3)iWeb (1)JavaScript (2)Joomla (10)Joomla 2.5 (36)Koken (11)Linux (27)Logaholic (5)Magento (2)Maintaining Your Website (1)Managing Files (7)Microsoft FrontPage (11)Microsoft Publisher (1)ModSecurity (7) MODx (3)New Customers (7)Open Classifieds (1)PCI Compliance (7)PHP (15)PHP Configuration (7)PHP Troubleshooting (6)phpBB (25)phpMyAdmin (10)Premium Website Builder (22)Prestashop (1)Protecting Files (5)Publishing Your Site (2)Python (1)Redirects (4)Restricting Bots (5)Search Engine Optimization (1)Secure Socket Layer (SSL) Tutorials (13)Security (12)Sending Email From Websites (2)Server Security (2)Server Usage (21)Slow Websites (7)Social Media (4)Software FAQs (11)Soho Web B
Knowledge BasePagesBlogTagsPage tree Browse pagesConfigureSpace tools Attachments (0) Page History Page Information Resolved comments Link to this Page… View in Hierarchy View Source Export to PDF https://confluence2.cpanel.net/display/CKB/The+cPanel+Log+Files Export to Word Pages cPanel Knowledge Base The cPanel Product Skip to end of banner JIRA links Go to start of banner The cPanel Log Files Skip to end of metadata http://www.cpanelkb.net/cpanel-log-file-locations/ Created by Doc User, last modified on Aug 10, 2016 Go to start of metadata We last updated this page on: Aug 10, 2016 09:59 OverviewThis document describes the location of all error log of the log files in cPanel & WHM, Webmail, and MySQL®. This document also provides examples of each log file.The directories and files in this document reflect unaltered configurations on CentOS, CloudLinux™, RedHat Enterprise Linux (RHEL), and Amazon Linux. Note: You can alter a log file's location with a configuration file. GeneralFilepathDescriptionExample/var/log/messagesThis directory contains the login attempts and general error messages for the following apache error log services:FTPThe nameserver daemons (named or nsd).MyDNSThe SSH daemon (sshd).The Courier mail server. Warning: We removed the Courier mail server in cPanel & WHM version 54. The Courier mail server only exists for cPanel & WHM version 11.52 and earlier.The Dovecot mail server.Apache SpamAssassin™. Click to view... Nov 3 08:41:10 vm5 proftpd[684684]: 10.1.100.35 (127.0.0.1[127.0.0.1]) - FTP session opened. Nov 3 08:41:10 vm5 proftpd[684684]: 10.1.100.35 (127.0.0.1[127.0.0.1]) - FTP session closed. Nov 3 08:46:12 vm5 proftpd[684753]: 10.1.100.35 (127.0.0.1[127.0.0.1]) - FTP session opened. Nov 3 08:46:12 vm5 proftpd[684753]: 10.1.100.35 (127.0.0.1[127.0.0.1]) - FTP session closed. cPanel & WHM servicesFilesThe following table lists the log files for cPanel & WHM.FilepathDescriptionExample/usr/local/cpanel/logs/access_logThis file contains records of when a cPanel & WHM user accesses their account. Click to view... 192.168.0.20 - - [10/21/1985:16:42:23 -0000] "GET /.__cpanel__service__check__./serviceauth?sendkey=__HIDDEN__&version=1.2 HTTP/1.0" 200 0 "" "-" "-" "-" /usr/local/cpanel/addbandwidth.logThis file contains records of when a user adds bandwidth to a cPanel account. Click to view... [2014-10-15 10:08:52 -0500] info [bandwidth] ADDHTTP: 'example.com' = 67 /usr/local/cpanel/build/locale_database_logThis file contains information about when a user edits a locale. Click to view... [2014-09-28 02:55:26 -0500] info [build_locale_databases] Finished updating and modifying locales databases [2014-09-29 02:54:16 -0500] info [build_locale_databases] Begin update of loca
cPanel log file locations and Basic troubleshooting, most activity that happens on a server to log files, so that you can go back and review log entries for problems, instead of having to be on the server at the time of them happening. Kernel Boot & Hardware error logs Path : /var/log/dmesg Use the command ” dmesg ” in the root shell to display all the kernel ring buffer (last 64 K) stored in the memory. Just use ” dmesg > boot.messages ” to store the logs in the separate file, and if you want to clear the dmesg just type ” dmesg -c “. System Informations Path : /var/log/messages Use “ tail -f /var/log/message ” to list what is going on with your system and with your dns. This logs helps the admin to find our any form of tcp/udp and other form of attacks. Bad Login / Logout logs Path : /var/log/btmp Stores all the bad login and logout attempts either failure or success. Just use the lastb command to list all the log in a clear format with date/time etc to trace and block the attack source. This kind of attacks on ssh are normally done using a script with Brute force password crackers. Login / Logout logs Path : /var/log/wtmp Similar to the bad login/logout this log store the good/authorized system login and logout which can be listed using ” last “ command. Last Logins Logs Path : /var/log/lastlog Database times of previous user logins. The lastlog file is a database which contains info on the last login of each user. Use the ” lastlog ” command to retrieve the data from the logs. Authentication logs Path : /var/log/secure Logs all daemons which requires PAM Authentication. Common Cpanel logs cPanel/WHM Initial Installation Errors Path : /var/log/cpanel*install* Logs use to record the missing dependency or any error which its encouter during the cpanel installation process including the hardware driver failures/mis-matches. Cpanel License Error Logs Path : /usr/local/cpanel/logs/license_log License and its updated information’s are stored here, if you are encountering with any license issue just execute the command /usr/local/cpanel/cpkeyclt to update the license from the cpanel. Cpanel/WHM Accounting Logs Path : /var/cpanel/accounting.log Contains a list of accounting functions performed through WHM, including account removal and creation. So the administrator can make of this logs to check who deleted the account and from which ip etc. Cpanel/WHM Service Status Logs Path : /var/log/chkservd.log Separate logs for the cpanel’s chkservd daem