Setup file creation ownership problems

Hi

When I run setup the 2 files created within zp-data are created as owner and group as apache.
Is this my hosting company to blame or can I add something to the script to force these created files to keep my ownership rights?

cheers

Comments

  • This is a server configuration. If Zenphoto is in the apache group there should not be a problem. Otherwise, you may need to change these permissions.

    Ideally any file created by a script should be owned by the userid that the script runs under.
  • Hi

    Thanks for the reply.

    Yes it seems that only these two files created during setup are not using my userid. I have had problems in the past when uploading images etc. The permissions are fine if i upload via FTP but uploading via zenphoto often creates ownership problems,

    I keep having to ask the hosting company to remove these files for me or change the owner/groups.

    Cheers
  • Ask your hosting company to insure that your PHP scripts run under your userid.
Sign In or Register to comment.