icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Trying to read my log files

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 16th, 2004, 10:55 PM   #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
IKLOP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 17th, 2004, 3:10 PM   #2 (permalink)
Third Plateau
Comfy Contributor
 
Dave's Avatar
 
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)
Dave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 17th, 2004, 3:30 PM   #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.
IKLOP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 17th, 2004, 3:34 PM   #4 (permalink)
Third Plateau
Comfy Contributor
 
Dave's Avatar
 
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)
Dave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 17th, 2004, 3:41 PM   #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
IKLOP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On