CentOS Server Log Files Location

Started by Administrator, June 13, 2014, 03:56:31 PM

Previous topic - Next topic

Administrator

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
cat /full/path/to/file.name
less /full/path/to/file.name
nano /full/path/to/file.name
vi /full/path/to/file.name
vim /full/path/to/file.name

To live monitor logs you can user this command
tail -f /full/path/to/file.name



apmuthu

#1
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.....

Administrator


erm3nda

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.

Administrator

just delete it and try restarting service, it should be automatically added after server needs to add something in it.

erm3nda

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.

become

This post should be updated or removed becouse log file location changed
http://wiki.centos-webpanel.com/service-log-paths

takuda

log file directory has changed path, need to update information again

overseer

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:
-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:
-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

PakPos

Quote from: takuda on November 10, 2022, 09:54:40 PM
log file directory has changed path, need to update information again


can you share the new location ?


the clearlog script need to update ?