• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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

S

stevenf

Guest
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 ?

:(
 
Don't know off the top of my head but look for something called a "umask"
 
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.
 
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.
 
Back
Top