Click to See Complete Forum and Search --> : PHP Permission Problems Windows 2000


qest
04-18-2005, 03:08 PM
I added this problem to the bottom of another semi-related thread and got no response so I'm making a new thread.

I have a windows 2000 server running apache 2 and php. I have a script that I call both from command line and through apache. The script contains several exec functions which only work when the script is called via apache. I'm pretty sure it's a permissions problem, because via apache doesn't work either unless the service is runned as ./administrator. I suspect that running the script via command line would work if I could figure out how to give php more permissions.

planetsim
04-18-2005, 10:07 PM
Have you checked your Error Logs to confirm your suspensions, more than likely PHP will throw an error there.

What is going to be executed? PHP shouldnt be given Administrator like permissions same with Apache etc.

qest
04-18-2005, 10:45 PM
Have you checked your Error Logs to confirm your suspensions, more than likely PHP will throw an error there.
No... I will do that. But I'm pretty sure. What other reason could there be?

What is going to be executed? PHP shouldnt be given Administrator like permissions same with Apache etc.

I agree with you. In principal, it just seems like a bad idea, but I've yet to hear a way around it.