View Single Post
  #1 (permalink)  
Old 06-14-2009, 10:14 PM
bamnet bamnet is offline
Registered User
 
Join Date: Feb 2005
Posts: 15
bamnet is on a distinguished road
Question Plugin permissions

I'm working on creating a plugin to replace the Ruby on Rails interface included in CPanel with my own simplified version developed for Passenger/mod_rails.

I'm wondering what the best way to get a plugin to write/create a file like /usr/local/apache/conf/userdata/std/2/username/domain/rails.conf is? I've tried just having my php script use mkdir (since the directory structure doesn't exist for all users) and fopen but since the script runs as the user it doesn't have permission to do any writing.
Reply With Quote