Advertisement
kewlhotrod

Untitled

Jul 1st, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <RalieghFhang> Hello there. I'm having some issues with www-data. Now this question could go to here, Ubuntu, OR PHP but I'm going to try here first.
  2. <Unbeliever> RalieghFhang: what does the error log say, exactly?
  3. <RalieghFhang> Hold on I'm getting to it.
  4. <RalieghFhang> I'm attempting to use PHP to run a script in /home. The script runs fine, is coded properly, etc. However in apache error logs I am given permission errors. The script simply runs a mkdir command.
  5. <RalieghFhang> When trying to create the directory it gives me permission denied. Now I know I can CHOWN 755 everything there... But that seems like a huge security hole since it's my /home folder.
  6. <skcin7> Thank you Unbeliever ^_^
  7. * Disson (disson@virtual.disson.fi) Quit (Read error: Operation timed out)
  8. * Disson (disson@virtual.disson.fi) has joined #httpd
  9. <RalieghFhang> I'm wondering if there's a way to get www-data (PHP/Apache user) to either sudo or run a script by changing the user.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement