homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

.htaccess file to run specific scripts as a specific user

 4:57 pm on Nov 1, 2007 (gmt 0)

Hello, I am having trouble with one of my php scripts which needs to create/edit/delete different files within a website. The problem is when I upload the files via FTP they are all given a specifc "owner" and "group". However when the scripts are run by me browsing to them the scripts are run by "nobody" in which case it dosn't have the privllages to create/edit/delete files (or even chmod, or chown, the files). So is does anyone know how to run the script as a specific user?

Or maybe this can be set in the .htaccess file? Whenever abc.php runs it runs as "Someuser"?




 10:09 pm on Nov 1, 2007 (gmt 0)

I'd recommend using a shell command via SSH to set the permissions and ownership as needed. Or contact your host to see if they can help. .htaccess affects HTTP requests, and has no control over the server's OS environment.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved