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+");
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?
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?
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.
This topic is now closed. New replies are no longer allowed.