Heya, folks, I'm banging my head against a wall here, so any help would be
great. It's a bit long, but I'm hoping that this provides every last
detail you might need to help me figure out what I'm doing wrong.
We have 3 servers at our office, in the following configuration:
DEATHSTAR TATOOINE HOTH
Win2K Web Server <---> Win2K File Server <-SMB-> RedHat 7.3 Web Server
On DEATHSTAR we're running ColdFusion MX, and I'm trying to get PHP 4.2.3
up and running. TATOOINE is a standard Win2K file server, with a share
named DESIGN that has all of our web site content on it. I can get to this
share with Samba on HOTH (which is also running CFMX), where it is mounted
as "/mojo/design". The web servers are both mapped to the same share and
directory (\\Tatooine\Design\intranet.mojointeractive.com\website) for
their document root, for which the default page is a ColdFusion file
(index.cfm):
http://intra.mojointeractive.com/ [DEATHSTAR]
http://hoth.mojointeractive.com/ [HOTH]
It've got an ultra-simple PHP test page in the root that simply shows its
own source:
http://hoth.mojointeractive.com/test.php
Obviously, this works fine on the Linux server which I guess means that my
PHP install there worked. However, as you can see when you try to access
the same page from the Windows server, you get an error:
http://intra.mojointeractive.com/test.php
"Warning: Failed opening '\\Tatooine\Design
\intranet.mojointeractive.com\website\test.php' for
inclusion (include_path='.') in Unknown on line 0"
I saw this thread on MARC:
http://marc.theaimsgroup.com/?l=php-windows&m=99793552726088&w=2
Which basically says that the solution is to run IIS as a domain user that
has permissions on the remote machine. Sounds right, since I basically
have to do the same thing for the ColdFusion service to get it to work. I
used a domain user that I knew could access the share and set up all of the
IIS services to logon as that user. (It started throwing errors to just
have the WWW service running as the user, and not the IIS Admin and FTP
services, as well.) Then I started getting a different error, this time
not just for my PHP files, but also for my CF files:
"A required privilege is not held by the client"
This page gave me an idea on how to fix it:
http://support.softartisans.com/kb/viewfaqs.asp?product=SA-Admin
I needed to add the user to the list of users allowed to logon as a service
and act as part of the operating system. I was rather surprised that it
let me start the services in the first place, but I gave it a shot. Reboot
to take effect, and reload the pages. Still no go. I note that this page
tells me another step in the process:
http://www.aspupload.com/manual_security.html
It says that I also have to set the IIS Application Protection option to
LOW (which I had specifically set to HIGH because the install instructions
told me to). I tried that, and it got my CF pages working again, but I was
back to the same "failed opening" error with PHP.
I've seen several solutions for getting UNC files to work with fopen(), but
I can't seem to find any solutions for getting PHP to work with UNC
document roots. Can anyone help me on this? Or at least give me a pointer?
Thanks,
-R
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php