image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X Server

Reply
 
Thread Tools
  #17  
Old August 3rd, 2007, 12:30 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 251
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Hmmm, maybe the osascript will only work if it's run by the user who "owns" the current login session... Try this to test (note this is unsecure so it's best to put things back the way they were once the test is done):

(1) Stop the web server
(2) Edit /etc/httpd/httpd.conf and set the User and Group to your account name and group name (the command "id" in the terminal will give you this)
(3) Start up the webserver and try the php script again.
Reply With Quote
  #18  
Old August 3rd, 2007, 12:52 PM
Registered User
 
Join Date: Jan 2006
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Moptop is on a distinguished road
YES IT WORKS!

Thank you VERY much!!!
Reply With Quote
  #19  
Old August 3rd, 2007, 01:36 PM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 251
Thanks: 1
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Ok so now we know the answer. Maybe you can use Apache's "suxec" to handle this more securely. Check out this write-up on how to use it:

http://apache-server.com/tutorials/LPsuexec.html
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 05:48 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.