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

Client home directory access

Discussion in 'Plesk for Linux - 8.x and Older' started by rwhirn, Mar 21, 2008.

  1. rwhirn

    rwhirn Guest

    (Sorry for the cross post)

    I am new to Plesk, but I am familiar with Linux and have built my own personal Redhat 9 server. I have just purchased my first Dedicated Server running on RHEL5. I intend to use this server for only one client with only one website (to start may add a second site for them later).

    I created the client and created the domain.

    Two questions: first, in the client's home directory, which is /var/www/vhosts/domain.com/, why when I login as the client, can I not create any files or directories in here? If this is the client's home shouldn't the client be able to create stuff? (obviously I am able to login as "su" and create directories, but then I must chown them to the client).

    Second, and more importantly, the website uses PHP include files stored outside the web root for sensitive password information. I went through the steps above, created a directory called "/var/www/vhosts/domain.com/includes" and gave the client rights to it and put all the files there, but my PHP pages are unable to access the files. I generally use "../../includes/file.php" but I have tried absolute path "/var/www/vhosts/domain.com/includes/file.php" and various other formats to no avail.

    Can anyone tell me what I am doing wrong here?
  2. Hedgren

    Hedgren Guest

    Access to the domain dirs is via a domain ftp user specified in the domain hosting setup (and listed in /etc/passwd), but this user by design has no permission to write to /var/www/vhosts/domain.com Domain FTP Users can only write to the domain public root: /var/www/vhosts/domain.com/httpdocs
    More information on that can be found and in the docs, and here: http://kb.swsoft.com/en/4023
    As for your 2nd question, http://kb.swsoft.com/en/432 -- could help.