Results 1 to 4 of 4
  1. #1
    Member summitlake's Avatar
    Join Date
    May 2003
    Location
    Castro Valley CA
    Posts
    43

    Default server httpd access_log under 4.0?

    Under the old 3.0, we had sever error logs 'access_log' in var/log/httpd. It was indispensable for diagnosing both script and html issues.

    Under 4.0, I can find a var/log (using Fetch) but no httpd dir enclosed. I also spent some time in cPanel but didn't see anything to enable of browse the log I want. Where is this puppy located or how to I switch it on? Thanks!
    Alex
    summitlake.com

  2. #2
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,721

    Default

    You should see an entire Logs section in cPanel that gives you access to both the Raw Access Logs and Error Log along with some other helpful tools for diagnosing the logs. If you are logged in via Fetch then you should see access-logs in your user root directory that is a symbolic link to your log files. Your httpd logs are in a file named after your domain. You might also see ftp logs for your account there also.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

  3. #3
    Member summitlake's Avatar
    Join Date
    May 2003
    Location
    Castro Valley CA
    Posts
    43

    Default

    Gosh, thanks, surprised I didn't see that in /alexand4.

    But clicking the access-logs symlink brings me to a single file only, named summitlake.com, that contains only a single entry:
    176.61.139.107 - - [29/Apr/2013:11:54:27 -0600] "GET http://37.28.156.211/sprawdza.php HTTP/1.1" 404 6058 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"

    This looks much like my old access_log entry for normal browsing. In debugging my perl scripts, in which pathnames and even "use" and "require" syntax has to be changed for the new server environment, I get a lot of server errors in perlcheck.pl or attempting to execute the script. These errors used to show up in access_log, along with more you couldn't see in the browser just as script execution fails.

    Do you think file summitlake.com would be our one and only troubleshooting resource under 4.0? The single entry being only for today, I'd think older errors and activity might be archived somewhere else? Have you ever compared what we do to someone building a ship in a bottle? Thanks once again Shawn ...
    Alex
    summitlake.com

  4. #4
    Moderator wildjokerdesign's Avatar
    Join Date
    Jun 2003
    Location
    Kansas City Mo
    Posts
    5,721

    Default

    Well it may be they do wipe the slate clean so to speak every 24 hrs. There is a tick box for "Archive logs in your home directory at the end of each stats run[ [every 24 hour(s)~]] " in cPanel under Logs > Raw Access Logs. Do check though Logs > Error Log in cPanel. I've noticed before that my regular access log can be empty but this page can be showing recent errors.
    Shawn
    Please remember your charity of choice: http://www.redcross.org

    Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •