Author Topic: CentOS Server Log Files Location  (Read 98371 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CentOS Server Log Files Location
« on: June 13, 2014, 03:56:31 PM »
CWP Login Logs
/var/log/cwp_login.log

Apache server Logs location:
/usr/local/apache/logs/

suPHP Log
/var/log/suphp.log

PHP Rebuild Log (PHP Switcher)
/var/log/php-rebuild.log

Postfix
/var/log/maillog

Dovecot
/var/log/dovecot-debug.log
/var/log/dovecot-info.log
/var/log/dovecot.log


How to View Logs?
You can use File Manger in CWP as one of the options
Code: [Select]
cat /full/path/to/file.name
Code: [Select]
less /full/path/to/file.name
Code: [Select]
nano /full/path/to/file.name
Code: [Select]
vi /full/path/to/file.name
Code: [Select]
vim /full/path/to/file.name
To live monitor logs you can user this command
Code: [Select]
tail -f /full/path/to/file.name

« Last Edit: March 02, 2020, 12:19:14 PM by Administrator »
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: CentOS Server Log Files Location
« Reply #1 on: November 11, 2014, 04:36:09 PM »
CWP Login Logs file is now (CWP v0.9.6) at:
/var/log/cwp_client_login.log

cwpsrv Logs are at:
/usr/local/cwpsrv/logs

Wonder why the dovecot logs have 777 permissions.....
« Last Edit: November 11, 2014, 04:41:48 PM by apmuthu »

Offline
*
Re: CentOS Server Log Files Location
« Reply #2 on: November 12, 2014, 03:57:56 AM »
hmmm...this needs to be checked
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: CentOS Server Log Files Location
« Reply #3 on: April 05, 2015, 04:18:50 AM »
I've deleted suphp.log (or whatever name it has).
I've created a new one but seems is not working.

I got blank screen when clicking Search button on the Softaculous admin and no warning is saved on the new suphp.log, so i guess i didnd't create them properly.

I wanna ask about if there's any script or easy way to RE-create all the logs involved on the cwp.

Best regards.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
*
Re: CentOS Server Log Files Location
« Reply #4 on: April 09, 2015, 04:51:04 PM »
just delete it and try restarting service, it should be automatically added after server needs to add something in it.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
***
Re: CentOS Server Log Files Location
« Reply #5 on: April 10, 2015, 02:54:05 PM »
I think i try to restart services and didn't create it.

But i test all the other stuff and finally someone did it.
So, file has been created again.

Anyway, a list of all logs created by cwp would be nice.
I know there are some post with a few, but a full one would be best.

Regards.
8==D it's a function that try to compare 8 (int) against D (string) which returns True or False depending on the asker.

Offline
***
Re: CentOS Server Log Files Location
« Reply #6 on: November 30, 2017, 03:50:41 PM »
This post should be updated or removed becouse log file location changed
http://wiki.centos-webpanel.com/service-log-paths

Offline
*
Re: CentOS Server Log Files Location
« Reply #7 on: November 10, 2022, 09:54:40 PM »
log file directory has changed path, need to update information again

Offline
****
Re: CentOS Server Log Files Location
« Reply #8 on: January 07, 2023, 10:20:17 PM »
I would suggest changing all log files to be in the form of logfile_name.log
as you have done with the /var/log/cwp_client_login.log file.
Various log readers handle the files better with a .log extension, making them double-clickable if you download a copy of the log or are tailing it via SSH in a log reader. This pertains to the log files in /usr/local/cwpsrv/logs:
Code: [Select]
-rw-r--r--   1 root root     45026 Jan  7 05:35 2304_access_log
-rw-r--r--   1 root root    151365 Jan  7 05:35 2304_error_log
-rw-r--r--   1 root root 568702955 Jan  7 14:13 access_log
-rw-r--r--.  1 root root 420969877 Jan  7 14:13 error_log
Simply amend their naming convention:
Code: [Select]
-rw-r--r--   1 root root     45026 Jan  7 05:35 2304_access.log
-rw-r--r--   1 root root    151365 Jan  7 05:35 2304_error.log
-rw-r--r--   1 root root 568702955 Jan  7 14:13 access.log
-rw-r--r--.  1 root root 420969877 Jan  7 14:13 error.log

Offline
***
Re: CentOS Server Log Files Location
« Reply #9 on: January 08, 2023, 07:59:52 AM »
log file directory has changed path, need to update information again


can you share the new location ?


the clearlog script need to update ?