Re: How to set up Apache 2.0.55 for my local network?
On Tue, 3 Jan 2006 12:36:51 +1100, "Marcel"
<info@nospam-bluegumdata.com.au> wrote:
>I need some advise please.
>I have installed Apache 2.0.55 on a W2K computer.
>That computer is part of a local network (192.168.0.xxx, 255.255.255.0) with
>1 XP computer and 3 W2K computers.
>All these PCs don't have any problem accessing the webserver.
>My problem arises when I want to use PHP and the webserver to access
>information that is on one of the other computers, for instance when I want
>to copy, using PHP, something from drive V:\. I then get the following
>message:
>
>Warning: copy(V:\copytest2\test.jpg): failed to open stream: Permission
>denied in D:\localweb\copytest\copytest.php on line 2
>
>My question: how can I configure Apache in such a way that this can be done?
By default the Apache2 service logs in as local system account,
which doesn't have permission to read files in a fileshare.
You would have to run the Apache2 service as a user which has
access to network resources and the file shares you want it to
access. Open the services console, stop the Apache2 service,
change its login / signon properties and start it again.
By the way, forward slashes are preferred in directory paths
within Apache and PHP.
>Thanks for your ,
>Marcel
Good luck.
--
( Kees
)
c[_] A lady is a woman who makes a man behave like a gentleman. (#278)
|