Control Web Panel

WebPanel => Information => Topic started by: Administrator on June 13, 2014, 03:56:31 PM

Title: CentOS Server Log Files Location
Post by: Administrator 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

Title: Re: CentOS Server Log Files Location
Post by: apmuthu 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.....
Title: Re: CentOS Server Log Files Location
Post by: Administrator on November 12, 2014, 03:57:56 AM
hmmm...this needs to be checked
Title: Re: CentOS Server Log Files Location
Post by: erm3nda 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.
Title: Re: CentOS Server Log Files Location
Post by: Administrator 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.
Title: Re: CentOS Server Log Files Location
Post by: erm3nda 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.
Title: Re: CentOS Server Log Files Location
Post by: become 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
Title: Re: CentOS Server Log Files Location
Post by: takuda on November 10, 2022, 09:54:40 PM
log file directory has changed path, need to update information again
Title: Re: CentOS Server Log Files Location
Post by: overseer 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
Title: Re: CentOS Server Log Files Location
Post by: PakPos 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 ?