• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Apache Logs?

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Apache Logs?

    Not unconnected with my other thread. I have a client website hosted with easyspace. I can't find any log files, so I'm assuming that perhaps they are switched off. I'd like to see the logs so I can try to debug my other problem

    I added this into .htaccess
    CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b"

    Now I get this with each website access:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.


    So my numpty question is: what did I do wrong?

    EDIT: so I realised that I need an absolute path but I still get the error. And I also tried the ErrorLog directive. Same result as above.
    ErrorLog /vhost/vhost9/s/o/u/example.com/logs/error_log
    Last edited by Platypus; 23 June 2014, 11:04.

    #2
    Originally posted by Platypus View Post
    Not unconnected with my other thread. I have a client website hosted with easyspace. I can't find any log files, so I'm assuming that perhaps they are switched off. I'd like to see the logs so I can try to debug my other problem

    I added this into .htaccess
    CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b"

    Now I get this with each website access:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.


    So my numpty question is: what did I do wrong?
    Don't the directives go into httpd.conf?

    Comment


      #3
      Originally posted by stek View Post
      Don't the directives go into httpd.conf?
      Yes, but when you're hosted, you can't access httpd.conf

      So part of my question was absolutely, can these work in .htaccess?

      Comment


        #4
        Originally posted by Platypus View Post
        Yes, but when you're hosted, you can't access httpd.conf

        So part of my question was absolutely, can these work in .htaccess?
        I dont think its possible in .htaccess

        mod_log_config - Apache HTTP Server Version 2.4

        Comment


          #5
          Is this relevant? Web Logs and Statistics - Support Portal

          Comment


            #6
            Originally posted by FiveTimes View Post
            I dont think its possible in .htaccess
            Yeah, you're right. Thanks

            Comment


              #7
              Originally posted by NickFitz View Post
              Thanks, Nick, I can view stats but there are no log files to see.

              Comment

              Working...
              X