Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

are cpanel logs are incomplete?

Discussion in 'General Discussion' started by mohd_007, Mar 6, 2012.

  1. mohd_007

    mohd_007 Well-Known Member

    Joined:
    Sep 22, 2007
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    56
    cPanel Access Level:
    Website Owner
    Today I had an issue where client was saying how his files got deleted, I checked FTP logs and FTP wasn't accessed. I then saw cpanel access logs and found that file manager was accessed.

    --
    xx.xx.xx.xx - user [03/05/2012:17:00:51 -0000] "GET /cpsess4898857957/frontend/x3/filemanager/img/icons/moveB_grey.gif HTTP/1.1" 200 0 "http://domain.com:2082/cpsess4898857957/frontend/x3/filemanager/index.html?dir=public_html/addondomain.com" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2"
    --

    but there were no entries of files being deleted, then I my self created a test file and deleted it through file-manager and it was still the same the cpanel access logs only reported this.

    --
    xx.xx.xx.xx - user [03/06/2012:05:07:10 -0000] "GET /cpsess5047758577/json-api/cpanel?cpanel_jsonapi_module=Fileman&cpanel_jsonapi_func=listfiles&cpanel_jsonapi_apiversion=2&needmime=1&dir=%2fhome%2fuserpublic_h
    tml%2faddondomain&showdotfiles=1&cache_fix=13310678926 HTTP/1.1" 200 0 "http://domain.com:2082/cpsess5047758577/frontend/x3/filemanager/index.html?dirselect=ftproot&domainselect=domain.com&dir=%2Fhome%2Fuser%2Fpublic_ftp&showhidden=1&saveoption=1" "Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20100101 Firefox/8.0"
    --

    It was showing something was being saved, but cpanel is logs not showing proper information. Can you please let me know how to determine if the file was deleted using filemanager. Are cpanel logs are incomplete?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,340
    Likes Received:
    402
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I believe they are, in regard to the File Manager.

    This topic has come up multiple times on this forum but, I do not believe anyone has actually started a Feature Request on it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 000

    000 Well-Known Member

    Joined:
    Jun 3, 2008
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    66
    Regards.

    Really I need this function !!!

    I need used the function listfiles.

    I try list a folder with this:

    :2087/json-api/cpanel?user=nameuser&cpanel_jsonapi_apiversion=1&cpanel_jsonapi_module=Filename&cpanel_jsonapi_func=listfiles&chooser=0&dir=/home/nameuser";

    But forever result s this:

    Code:
    {"apiversion":"1","type":"event","module":"Filename","func":"listfiles","source":"module","data":{"result":""},"event":{"result":0,"reason":"Filename::listfiles() failed: Undefined subroutine &Cpanel::Filename::Filename_listfiles called at (eval 4) line 1.\n"}}
    Please any help?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice