Unable to read log files

saran's Avatar

saran

12 Jan, 2016 09:17 AM

Hello,

I am trying to setup PimpMyLog on CentOS server with Apache virtualhost.
On figuration screen it keeps showing following error

"Directories are available but unable to find files inside."

Event I tried to manually input path manually as /var/log/error_log but it does not work

Custom files below are not readable, please remove them or verify that they are readable by the webserver user (web server user seems to be apache):
/var/log/httpd/error_log

here is my log file properties
-rw-r--r-- 1 apache apache 9996 Jan 12 04:04 error_log

  1. Support Staff 1 Posted by potsky on 12 Jan, 2016 09:20 AM

    potsky's Avatar

    Hello !

    Could you send me the results of :

    • ls -al /
    • ls -al /var
    • ls -al /var/log
    • ls -al /var/log/httpd

    please ?

  2. 2 Posted by saran on 13 Jan, 2016 12:21 AM

    saran's Avatar

    Hi,

    Thank you for promt reply. Here are info

    ls -al /

    drwxrwxrwt 6 root root 4096 Jan 12 04:20 tmp
    drwxr-xr-x 13 root root 4096 Dec 17 2013 usr
    drwxr-xr-x 21 root root 4096 Nov 18 01:01 var

    ls -al /var

    drwxr-xr-x 28 root root 4096 Jan 12 04:20 lib
    drwxr-xr-x 2 root root 4096 Sep 23 2011 local
    drwxrwxr-x 5 root lock 4096 Dec 17 2013 lock
    drwxrwxrwx 10 apache apache 4096 Jan 11 23:20 log

    ls -al /var/log

    drw-rw-rw- 2 apache apache 4096 Jan 11 23:01 httpd
    -rw-r--r-- 1 apache apache 146292 Jan 12 04:20 lastlog

    ls -al /var/log/httpd

    drwxrwxrwx 10 apache apache 4096 Jan 11 23:20 ..
    -rw-r--r-- 1 apache apache 69208 Jan 12 04:14 access_log
    -rw-r--r-- 1 apache apache 40170 Nov 29 02:49 access_log-20151129
    -rw-r--r-- 1 apache apache 47427 Dec 6 02:08 access_log-20151206
    -rw-r--r-- 1 apache apache 36693 Dec 13 00:51 access_log-20151213
    -rw-r--r-- 1 apache apache 161005 Jan 11 21:11 access_log-20160111
    -rw-r--r-- 1 apache apache 9996 Jan 12 04:04 error_log
    -rw-r--r-- 1 apache apache 22864 Nov 29 03:11 error_log-20151129
    -rw-r--r-- 1 apache apache 32180 Dec 6 03:22 error_log-20151206
    -rw-r--r-- 1 apache apache 27005 Dec 13 03:46 error_log-20151213
    -rw-r--r-- 1 apache apache 125025 Jan 11 21:27 error_log-20160111
    -rw-r--r-- 1 apache apache 0 Jan 11 21:27 ssl_access_log
    -rw-r--r-- 1 apache apache 1641 Nov 29 00:58 ssl_access_log-20151129
    -rw-r--r-- 1 apache apache 1687 Dec 5 22:24 ssl_access_log-20151206
    -rw-r--r-- 1 apache apache 2200 Dec 12 22:18 ssl_access_log-20151213
    -rw-r--r-- 1 apache apache 9877 Jan 11 18:23 ssl_access_log-20160111
    -rw-r--r-- 1 apache apache 1875 Jan 12 04:04 ssl_error_log
    -rw-r--r-- 1 apache apache 2152 Nov 29 00:58 ssl_error_log-20151129
    -rw-r--r-- 1 apache apache 2468 Dec 5 22:24 ssl_error_log-20151206
    -rw-r--r-- 1 apache apache 3264 Dec 12 22:18 ssl_error_log-20151213
    -rw-r--r-- 1 apache apache 14346 Jan 11 21:01 ssl_error_log-20160111
    -rw-r--r-- 1 apache apache 0 Jan 11 21:27 ssl_request_log
    -rw-r--r-- 1 apache apache 1991 Nov 29 00:58 ssl_request_log-20151129
    -rw-r--r-- 1 apache apache 2132 Dec 5 22:24 ssl_request_log-20151206
    -rw-r--r-- 1 apache apache 2798 Dec 12 22:18 ssl_request_log-20151213
    -rw-r--r-- 1 apache apache 12530 Jan 11 18:23 ssl_request_log-20160111

    Regards,
    Saran

  3. Support Staff 3 Posted by potsky on 13 Jan, 2016 05:57 AM

    potsky's Avatar

    The directory is not crossable, it has rw rights instead of rwx.

    chmod 777 httpd and it will work !

  4. 4 Posted by saran on 13 Jan, 2016 06:13 AM

    saran's Avatar

    Thank you! it works well.

  5. Support Staff 5 Posted by potsky on 13 Jan, 2016 07:24 AM

    potsky's Avatar

    Enjoy!

  6. potsky closed this discussion on 13 Jan, 2016 07:24 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac