SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2005
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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

    Code:
                    $file_1 = "newfile.txt";
    		$file_2 = "newfile_2.txt";
    		
    		$fp = fopen($file_1, "w+");
    		if($fp) {
    			copy($file_1, $file_2);
    		}
    ~Hard works bear fruits.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    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
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Member
    Join Date
    Sep 2005
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?
    ~Hard works bear fruits.

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,604
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    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

    2. 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

    3. Contacting your host for more information about Plesk.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •