davidausman — 2012-02-21T00:55:38-05:00 — #1
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+");
dklynn — 2012-02-21T05:47:19-05:00 — #2
Get back on a Linux server with cPanel
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?
davidausman — 2012-02-21T06:50:48-05:00 — #3
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 Isn't there any way to configure plesk to allow owner to create/copy and delete files within it's on server?
dklynn — 2012-02-22T03:28:06-05:00 — #4
I'm afraid that it's been too long for me since I last used Plesk. However, I'd recommend:
- Attempting to find a "File Manager" within Plesk and looking for attribute settings there
- 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)
- Contacting your host for more information about Plesk.