Technology Get the latest on technology, electronics and software…

Help with Windows Server, IIS, PHP and (file, user and process) permissions

Old Jun 24, 2012 | 12:07 AM
  #1  
thelastaspec's Avatar
Thread Starter
uʍop ǝpısdn ǝdʎʇ uɐɔ ı
 
Joined: Apr 2010
Posts: 1,363
Likes: 47
Help with Windows Server, IIS, PHP and (file, user and process) permissions

Hi,

So I'm doing a volunteer project and I've come across a stumble.

Background:
- PHP website hosted on Server 2008 R2 (IIS 7)
- Website launches a server side program that I wrote
- The program (written in c) edits an XML file
- XML value has one value in it (whatever thats called in xml), i change it to a 0 for 30seconds, then change it back to 1

Whats working:

- PHP page launches program (see it in task manager for 30 seconds)
- program edits files when run as user (Administrator)

Problem:

- I have discovered that when the php page starts the program, it runs it almost in a sandbox per say.
- I was reading and discovered that Windows Server 2008 R2's security stops some services / programs run by services from accessing stuff

Solution:
I need the get the program of mine when launched by the php page edit the file...

What I am not good at:
- I only understand windows file permissions and user permissions / file ownership at say a windows/linux power user level of understanding.
- I am no ways a system admin or anything
- Kinda figured out how Process Monitor/explorer by SystemInternals works

End goal:
- User clicks the link, web page loads, starts the server side program, program does its thing, web page closes itself.

Thanks a billion everyone for your help.

-thelastaspec

Last edited by thelastaspec; Jun 24, 2012 at 12:10 AM.
Reply
Old Jun 24, 2012 | 07:01 AM
  #2  
Whiskers's Avatar
Go Giants
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Aug 2004
Posts: 70,003
Likes: 1,260
From: PA
I would need to log into this one to help. Permissions are done on the file level and on the apps.
Reply
Old Jun 24, 2012 | 12:37 PM
  #3  
thelastaspec's Avatar
Thread Starter
uʍop ǝpısdn ǝdʎʇ uɐɔ ı
 
Joined: Apr 2010
Posts: 1,363
Likes: 47
Thanks for the help.
Remote access is a no go on this one.

I guess ill keep reading up on how these permissions work...
Worst case is I have to learn php or asp or something as that should work fine.
Reply
Old Jul 4, 2012 | 12:02 AM
  #4  
thelastaspec's Avatar
Thread Starter
uʍop ǝpısdn ǝdʎʇ uɐɔ ı
 
Joined: Apr 2010
Posts: 1,363
Likes: 47
if anyone ever stumbles upon this, the solution was that i was using double quotes instead of single quotes in my php code...

no permission stuff was to blame.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
le^2
5G TLX (2015-2020)
32
Mar 17, 2026 05:06 AM
Yumcha
Automotive News
9
Feb 25, 2020 09:57 AM
detailersdomain
Wash & Wax
3
Oct 9, 2015 10:13 PM
95oRANGEcRUSH
Car Talk
35
Sep 25, 2015 12:50 PM
agupta3224
2G RL (2005-2012)
0
Sep 22, 2015 02:37 PM



All times are GMT -5. The time now is 10:09 AM.