Web space issue or not

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Claus Mygind
    Contributor
    • Mar 2008
    • 571

    Web space issue or not

    I am trying to setup another web server. It is running apache 2.2.10 on
    an XP Professional OS platform with dBase 2.6.1.3 build 2059 BDE 5.2.0.2

    On some of my server side apps, I read the content of a directory and list
    the content on a response page so the user can click on a link and view the
    document on the screen.

    The server side app executes the following commands to read the directory (this is actually dBase Code but please read on. The array.dir( ) is a built in method of the dBase array class):

    Code:
    cDir = "y:\"+subStr(wkKey,1,2)+"000\"+cSearch+"\"
    wkKey = cSearch + "*.pdf"
    
    aTemporary = new array()
    nArraySize = aTemporary.dir(cDir + wkKey)
    The actual string would look something like this:

    nArraySize=aTem porary.dir("y:\ 27000\27094\270 94*.pdf")

    I currently have 2 working servers; a production and a test server and they both
    run this app and see the files located there. The new server cannot see
    these files. However dBase installed on the computer can run the lines
    above in the command window and retrive the information.

    Also When I copied the data from the y: to the local c: drive of the server,
    it was able to read the information in the web app.

    The y: drive is a standard xp mapping to another computer that has a shared
    folder.

    So my thinking is I am overlooking something in the apache server rights /
    web space or something else. Any suggestions would be helpful.

    Claus
  • Claus Mygind
    Contributor
    • Mar 2008
    • 571

    #2
    I don't know why, but the problem disappeared when I start the Apache server from console instead of running it as a service.

    With regards to me copying the data to the local c drive. I found that when running it as a service I still had a problem after recreating a similar directory structure as was on the other computer ie: c:\archive was mapped as x:

    Comment

    Working...