• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Client home directory access

R

rwhirn

Guest
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?
 
You cannot create any files in the /var/www/vhosts directory only in /var/www/vhosts/domain.ltd/httpdocs or httpsdocs.

All files related with publish site should be located into httpdocs directory. For example you can create httpdocs/include directory and use ../../include path.
 
Make sure that your web user can go out side of the root (httpdocs) and that you are not using a base dir restriction.
 
Back
Top