nick_phost

Active Member
Jun 16, 2004
34
0
156
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
 

encikacop

Member
Jun 29, 2007
10
0
51
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.
 

stdout

Well-Known Member
Apr 10, 2003
189
7
168
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.