PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Want to log search words to a Windows networked file (\\...)

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

  • Want to log search words to a Windows networked file (\\...)

    Hi

    We want to log the searchwords to a well known location on our Windows network:
    \\data1\logfiles\searchwords.log...

    I can't get this to work.
    Is there any way we could specify such a file, or does the file need to be specified as a relative location?

    (FYI: the main reason we want to do this is that we have load balanced servers, so the same URL can point to different machines.)

    Peter

  • #2
    See this FAQ on logging to start with.

    Should be no problem to enter in a UNC path on a Windows machine.

    More likely the problem is that the user that is executing PHP doesn't have file create and write permissions on this folder.

    Comment


    • #3
      Same log file: UNC path does not work, relative path does work

      The following file names point to the same file - just differently specified:

      \\shdevweb01\techcomm\sdltms\en\searchwords.log doesn't work. Get message unable to write to log file ()

      searchwords.log - works fine, as does ".\searchwords.log"

      Y:\sdltms\en\searchwords.log - doesn't work. Get message: Unable to write to log file (Y:\sdltms\en\searchwords.log). Understandable I guess because Y: is probably not be mapped for the asp.

      Pete
      Last edited by pebraham; May-05-2011, 07:34 PM.

      Comment


      • #4
        I gather from the last post you are using Classic ASP.

        It's most likely a permissions issue. You need to allow the shared folder to be accessed by the "IUSR_<machinename>" user account on the machine hosting the folder. This is described in the abovementioned FAQ page under "Setting permissions for logging (on a local server)". This account would need to exist on both the server machine and the machine hosting the log file.
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment


        • #5
          Thanks - our IT administrator says that makes sense.

          However, we have decided to use relative file names, because we don't know what happens if two different machines on our load balanced server try to write to the same log file at the same time.

          Thanks,
          Pete

          Comment

          Working...
          X