Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    php/apache and file permissions

    Php can't write to files/directories that are owned by apache:ftp w/rwx rights (ie. fopen & etc fail)

    this is a new gentoo server i set up in november as a dev box

    i'm completely stumped... suggestions would be appreciated

  2. #2
    Try changing the file's/directory's owner and/or group to nobody.

    chown nobody /file/you/want/php/to/write/to
    chgrp nobody /file/you/want/php/to/write/to

  3. #3
    Thanks. I tried this, with no luck. PHP isn't in safemode and open_basedir isn't set.

    I'm totally lost.

  4. $spacer_open
  5. #4
    I wrote a simple diagnostics script to test fopen on its own - the diagnostic script works, indicating this has nothing to do with server configuration.

    Thanks all!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts