/    Sign up×
Community /Pin to ProfileBookmark

php/apache permissions for windows shares

I am trying to write a PHP script to move a bunch of files from my webserver, to another machine on the same network. I’m running Apache on windows. I’ve tried mapping the network drive and using

[CODE]rename($webserverPath, “Z:/”);[/CODE]

Which threw permission errors.

I then created a windows share and tried:

[CODE]rename($webserverPath, “\\hostip\sharename”);[/CODE]

…same thing. Permission denied. I can’t seem to figure out how to add Apache to the user list for the share. What user does windows give to apache? I’ve tried adding every possible user in the share list, and giving it full control (network, anonymous, administrator etc.) … still nothing.

Any ideas?

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @nrjCL spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...