Re: RE: Cannot access file on Network Drive (Windows 2003)



On 5/24/07, Rahul Sitaram Johari <sleepwalker@xxxxxxxxxxxxxxxx> wrote:

I think you got a little confused with a previous post of mine. Mac OS X
is
Not in this scenario at all!!! So completely Eradicate it from this
current
Scenario.

This is a complete PHP/Apache on Windows 2003 Scenario. That's it!

So what it is supposed to be is:

* PHP5 / Apache2.2 on Windows Server 2003
* Folder on another Windows Machine on the Network contains some files
(mapped as network drive "X:\")
* PHP trying to read file on X:\ from Apache on Windows 2003.


Ok, I was under the impression this was one Win2003 machine in a Mac
network.

There's really nothing else to it.


Heh.

Can you, from the Windows 2003 machine, manually access the folder/file
that
> you're asking PHP (through Apache) to access? Unless the service that
Apache
> is running under has permissions to communicate with the share resource
> (location X), this will always fail.

Yes! Without any problems! I can easily navigate to the X: drive on that
Windows Machine, and do anything I want with files there. I have all
permissions.


Are you running Apache under a different (non-privileged) account on the
Win2003 machine? If Apache is running as a service with a different username
(with no extended access to network resources), you will need to get Apache
to run as a service under a user that can access the network resource. And I
still think you should use non-mapped addresses instead of mapped addresses,
since a mapping is just a localized version of a resource name alias.

If, after determing that Apache is running with the right permissions for
the owned processes to connect to and use a network shared resource, then
it's probably an Apache UID conflict (is PHP in safe mode?).
--
Jared Farrish
Intermediate Web Developer
Denton, Tx

Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$


Relevant Pages

  • Re: [opensuse] fstab: umount as user
    ... Network Operating System concepts.... ... accounts and their settings exist on the ... Secondly, one single mount point for all users is just bad, it won't work. ... If A is member of group 2 they can use resource VI when they log in... ...
    (SuSE)
  • RE: What is an auto-printer?
    ... Windows XP uses Net Crawler to monitor shared resources on the ... network to make it easier to connect to a shared resource. ... or a folder that has just been shared. ... When Windows XP finds a newly-shared resource, it adds an icon for the ...
    (microsoft.public.windows.server.sbs)
  • Re: map network resource out of domain
    ... I want to map a network drive. ... But the shared resource is on a server ... But now the network resource can not be found.... ...
    (microsoft.public.windows.server.networking)
  • Re: Accessing Cluster Disks from a WEB Application
    ... Dimitris solved his problem by enabling Kerberos but I do not fully ... Windows 2000 introduced Kerberos enabling in Network names with SP3... ... > resource that the share resource is dependent on. ... > 2) This network name is different than the cluster name. ...
    (microsoft.public.windows.server.clustering)
  • Re: Failover Clustering Virtual IP Address
    ... When you install a SQL2000 instance in a cluster, the disk resource ... resource and the network name that your instance will use. ... for the SQL instance to use. ...
    (microsoft.public.sqlserver.clustering)