1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Please help, apache.apache user, doesn't give good right on file

Discussion in 'Plesk for Linux - 8.x and Older' started by stevenf, Jan 10, 2006.

  1. stevenf

    stevenf Guest

    0
     
    Hello

    When my customer put in the past with php something, like create a image file or something else, the file have this right

    bicho psacln 60029 déc 22 18:18 re-2004-08-30-16-29-38.jpg


    bicho.psacln

    now on all the server, files have

    apache apache 31724 déc 20 18:25 re-2005-12-20-18-25-31.jpg

    apache.apache

    Please help me i've search on all .conf file and didn't find anything, does someone have encounter the problem before me ?

    :(
     
  2. spandox

    spandox Guest

    0
     
    Don't know off the top of my head but look for something called a "umask"
     
  3. stevenf

    stevenf Guest

    0
     
    didn't find answer in this way :(
     
  4. spandox

    spandox Guest

    0
     
    In the php - before you create a file use the command

    Code:
    umask(0033);
    This will create all new files readable. WARNING: never have php write into an area that someone could access using a web browser - you are setting yourself up to be hacked.
     
  5. stevenf

    stevenf Guest

    0
     
    thanks for your answer and thanks to help me , in fact my problem is that plesk have do the job to assign right user.group on created file in the past and now apply apache.apache, dunno why, and searching the solution.
     
  6. stevenf

    stevenf Guest

    0
     
  7. spandox

    spandox Guest

    0
     
  8. stevenf

    stevenf Guest

    0
     
    i try a trial installation for check a thing.
     
Loading...