njweatherman has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: The Apache Web Server
by blue_cowdawg (Monsignor) on Aug 17, 2007 at 21:18 UTC
        When I run cgi scripts that want to access local drives on my computer, the scripts fail because the computer is not allowing me to access the local drives.

    First off let's set the record straight: this is Perl Monks not Apache Monks and this question has not a wit anything to do with Perl, it is an Apache configuration/system administration issue.

    Now that I've asserted that.....

    When you say my computer what is the environment you are running on? By that I'm asking:

    • OS
    • Userid Apache is running on
    • What persmissions the file systems (drives) in question have
    Also, output from logs would be nice to look at. You are asking us to take a guess in the dark as to what is going on without any facts.

    I can pretty much guess that you are running on some flavor of Evil Empire® OS given your choice of wording, but I don't like to assume things.

    And what do you mean by access them? Are you trying to mount them, format them, spin them, burn them, eject them or just what?


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: The Apache Web Server
by misc (Friar) on Aug 17, 2007 at 16:41 UTC
    Which OS do you run ?
    There are several security measures within apache,
    which limit the access of cgi scripts to the filesystem.
    I don't know apache on windows, on linux you should first check whether the user/group your apache runs as has access to the files,
    often the apache server also runs in a chrooted fs.

    Could you perhaps post the according messages of your log files ?

    Michael
Re: The Apache Web Server
by technojosh (Priest) on Aug 17, 2007 at 16:35 UTC
    Error messages/code would help here.

    Apache Servers should not have a problem with accessing files that reside on the same machine as the server.

      Thanks for responding. The cgi script runs fine until I ask it to go to a certain directory on my hard drive. For instance C:/Test The program gets hung up and the error messages I receive varies from premature end of script headers to unable to open document. Basically, the cgi script is supposed to go to a directory on my hard drive, open up a microsoft word file, amend the file and then save as another file. The program works fine when I bypass the cgi part and use predefined variables. Thanks
Re: The Apache Web Server
by Plankton (Vicar) on Aug 18, 2007 at 04:35 UTC
    We could help you better if you provided some more details about your problem. There are many things that could cause the problem you are having ... for example I had simular problem the details of which you can find here on fedoraforum.org. Look for the Plankton post to that thread .)