| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Sep 2003
5 posts
Gave thanks: 0
Thanked 0 times
|
Trying to read my log files
Hey, I am trying to read my log file so that I can analyze them myself rather than having to use awstats or webalizer. But Im having trouble getting access to the file. From a tmp awstats file I've found that the logs are stored at /usr/local/apache/domlogs/iklopstudios.com but I can't open the file using php. I get a permission denied error. So I wrote up a little perl script and for some reason that was able to read the file
So then I tried to call the perl script from the php script useing the exec() function, but then the perl script failed to open the file (i'm guessing it inherited the same access priveledges as the php script ). So my quesion is, is there anyway to get around this? I'd hate to have to write the entire script in perl.
__________________
iklopstudios.com - flash |
|
|
|
|
|
#2 (permalink) |
|
Third Plateau
Comfy Contributor
Joined in Apr 2004
Lives in East Hanover, New Jersey
Hosted on Nifty
272 posts
Gave thanks: 0
Thanked 0 times
|
With surpass, your logs are stored in your home directory. When you FTP in, it's in the logs/ folder. You could also retrieve them in cPanel using the raw logs manager.
__________________
site (syberdave.net) - server (nifty) |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Sep 2003
5 posts
Gave thanks: 0
Thanked 0 times
|
The logs in the home directory are not the most recent logs. Those are updated about once a day, sometimes longer. The logs in /usr/local/apache/domlogs/iklopstudios.com are the raw access logs that I'm trying to access, but I would like to read them without having to go through cpanel, and using php.
|
|
|
|
|
|
#4 (permalink) |
|
Third Plateau
Comfy Contributor
Joined in Apr 2004
Lives in East Hanover, New Jersey
Hosted on Nifty
272 posts
Gave thanks: 0
Thanked 0 times
|
The most recent ones are at:
ftp://username_logs:password[at]ftp.domain.net/domain.net
__________________
site (syberdave.net) - server (nifty) |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Sep 2003
5 posts
Gave thanks: 0
Thanked 0 times
|
I didn't know you could get logs that way. I guess that will work, thanks
![]()
__________________
iklopstudios.com - flash |
|
|
|