Jump to content

tx647

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tx647's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I have apache installed on my RedHat machine. My document root is /var/www/html. But I want apache to be able to have write access to a directory outside of this root, say, /foo. How would I do that? I've been playing around with it for a while, changed the access mode of /foo to 777, put a <Directory> in httpd.conf, but it has never worked so far. Thanks in advance!
  2. Actually, as indicated in my original post, I've already set the owner and group of the directory/file to apache. Furthermore, I've also set the permission code to 777. I still couldn't perform the operation. Any idea?
  3. Any body got a solution for this? Thanks!
  4. Thanks for the reply! I actually have already set the error display to E_ALL. The message was not helpful at all: Warning: rename(/usr/foo/bar.mp4,/usr/foo/trash/bar.mp4): Permission denied in /*/myscript.php
  5. Hi there, I'm new here, and I got questions about the rename() function. Have been searching on Google for a while, but never got any luck. So, I have a script to move a file to another directory upon question. The syntax I'm using is rename($oldfile, $newfile). The old file resides in /usr/foo/, and I'm moving it to /usr/foo/trash/. I have changed the owner and group of both foo and foo/trash to apache. And to make it easy, I changed permissions of the file, foo and foo/trash directories all to 777. But the rename function always fails (checked many times my spelling and printed out the command query to double check). Also, there's another part to this problem. To test, I tried to do this same operation in /var/www/html directory. The problem is, rename() works on small files, but never on big ones (any thing bigger than 50M or so). I didn't think it was the problem, but I changed the php script memory limit environment variable to 200M. It didn't help at all any way. Any help would be greatly appreciated! xt
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.