Jump to content

CHMOD doesn’t work and neither does CHOWN


gloveny

Recommended Posts

Hi, when uploading images to a folder and the users folder doesn’t exists, the php script creates a new folder for the user.  When uploading videos the users use an applet.  When creating the new folder I’m using  the apache user, and the new folder is in a folder owned by the apache user.  But when the folder is created, even with mkdir($ftp_folder, 0777);, the permissions still only go to 0755, which is almost ok.  0755 allows the images to be written to the folder, but when the applet is FTPing files up, it doesn’t work because of permissions. 
How can I (A) give the applet permissions
              (b) make the server think that the applet is using the apache user
          or  (c) when the folder is create, make the permission got to 0777.
Thanks, Graham

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.