The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Raw log file download

Discussion in 'General Discussion' started by nick_phost, Jun 16, 2004.

  1. nick_phost

    nick_phost Active Member

    Joined:
    Jun 16, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Im having a weird problem. I have a client tring to download his log file in CP when he trys to open the file it said its damage.

    I tried to download other logfiles and i get that error on the domains with "-" in it.

    Has anyone seen that befor and how can i fix that.

    i also attached one of the log files.


    Thanks,
    Nick
    peoplehost.com
     
  2. encikacop

    encikacop Member

    Joined:
    Jun 29, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    You must make sure the log files have correct permission.

    Check under /usr/local/apache/domlogs and find the log files. The correct permission should be 644 for logs file.
     
  3. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    You can be sneaky about it and symlink the domain's access logs to ~/domlogs.
    This will allow real-time access to the access_log via FTP.

    1. Create the directory "domlogs" under your home directory.
    2. Set a cron to run once a minute (your cron is not jailshell'd):
    * * * * * ln -s /usr/local/apache/domlogs/your-domain.com $HOME/domlogs/your-domain.com
    3. Remove the cron after it has run as you'll need to do it once.

    Presto - you now have access to your apache access_log via FTP.
     
Loading...

Share This Page