1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Permission denied reading file from a different domain on the same box

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by John West, Jul 22, 2010.

  1. John West

    John West Guest

    0
     
    domain1.com and domain2.com both live on the same plesk 9.5 box:

    /var/www/vhosts/domain1.com/
    /var/www/vhosts/domain2.com/

    A perl script on domain2.com is failing with a permission denied error when it tries to read the following file:

    /var/www/vhosts/domain1.com/httpdocs/statusfile.txt (-rw-rw-rw- domain1user : psacln)

    The code that fails is:

    if (open (APPSEN,"</var/www/vhosts/domain1.com/httpdocs/statusfile.txt"))
    {
    ...
    }
    else
    {
    &HtmlDie ("Error opening status file on domain1: $!");
    }

    "$!" is "Permission denied"

    How do I get this to work?

    Thanks.
     
  2. 64bithost.com

    64bithost.com Regular Pleskian

    25
    57%
    Joined:
    Jul 30, 2007
    Messages:
    182
    Likes Received:
    0
    (-rwx-rw-rw- domain1user : psacln) check your usergroup permissions
     
  3. John West

    John West Guest

    0
     
    I will try this. Thanks!
     
Loading...