Changing permission with plesk

The plesk server I am using right now does not allow this script to create/copy file without changing the folder permission to 0777. Unlike cPanel which could get the job done by sticking to 0755. I am a little bit concerned to use 0777 as it could pose a security risk. Any ideas to get it done? Thanks


                $file_1 = "newfile.txt";
		$file_2 = "newfile_2.txt";
		
		$fp = fopen($file_1, "w+");
		if($fp) {
			copy($file_1, $file_2);
		}
  1. Get back on a Linux server with cPanel

  2. Change to 0777 but password protect access to the directory these files are located in. Plesk will allow you to do that, won’t it?

Regards,

DK

Option 2 could work, but my script in my localhost use cURL to syncronize data with my host and it might not working with password protected dir :frowning: Isn’t there any way to configure plesk to allow owner to create/copy and delete files within it’s on server?

David,

I’m afraid that it’s been too long for me since I last used Plesk. However, I’d recommend:

  1. Attempting to find a “File Manager” within Plesk and looking for attribute settings there

while

  1. Searching the Plesk.com website (http://www.parallels.com/products/plesk/) and view the File Manager tutorial (where you can see that the file attributes are a link - presumably to an attribute editor)

before

  1. Contacting your host for more information about Plesk.

Regards,

DK