• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

file upload not the correct path

HeRiNo

Basic Pleskian
Plesk 12.5.30

I have a new server en use Plsk. I have a statistics prgram that should upload stats to a file on the webserver.

This is the path I use: /var/www/vhosts/place2chat.com/httpdocs/stats/

but I keep getting error: Cannot change dir to "/var/www/vhosts/place2chat.com/httpdocs/stats/"
Problems with FTP upload

Can someone help me mayby finding the right path or the solution for this?

Best regards, Herman.
 
Hi HeRiNo,

pls. consider to add entries from log - files, if you would like to receive suggestions for your errors/issues/problems... it is much more efficient to investigate issues, based on log - files.




Nevertheless, pls. be aware about your rights structure:

Virtual Host Structure (Linux) ( Plesk online documentation for Plesk 12.5 )

Unfortunately, the Plesk documentation has a missing part about files and folders INSIDE of "/var/www/vhosts/YOURDOMAIN.COM/httpdocs/", so pls. be informed, that folders and files there should have the rights "DOMAIN_SPECIFIC_SYSTEM_USER : psacln"​
 
hello, thanks for the reply.

I dont understand what you say about rights.

that folders and files there should have the rights "DOMAIN_SPECIFIC_SYSTEM_USER : psacln"

What kind of rights are these and how can I give them?

Best regards, Herman.
 
Hi HeRiNo,

the command:

ls -ld /var/www/vhosts/YOURDOMAIN.COM/httpdocs

... will show your the current rights for the folder and it's used user and group ( DOMAIN_SPECIFIC_SYSTEM_USER : USERGROUP )


... while the command:

ls -ld /var/www/vhosts/YOURDOMAIN.COM/httpdocs/*

... will show your the current rights for the files and folder INSIDE "/var/www/vhosts/YOURDOMAIN.COM/httpdocs" ( DOMAIN_SPECIFIC_SYSTEM_USER : USERGROUP )


If you have a CLOSER look at the link:

Virtual Host Structure (Linux) ( Plesk online documentation for Plesk 12.5 )

you will notice, that the folder "/var/www/vhosts/YOURDOMAIN.COM/httpdocs" should have the rights:
user-group_rights_001.png

... while "user" is always the "DOMAIN_SPECIFIC_SYSTEM_USER" for your specific domain.

As stated with my first posts here in this thread I now repeat myself:

Unfortunately, the Plesk documentation has a missing part about files and folders INSIDE of "/var/www/vhosts/YOURDOMAIN.COM/httpdocs/", so pls. be informed, that folders and files there should have the rights "DOMAIN_SPECIFIC_SYSTEM_USER : psacln"


What kind of rights are these and how can I give them?
User and group rights can either be changed with your FTP - client, with the Filemanager over Plesk, or over the command line.
 
Hi UFHH01,

thanx for your patience.

I tried the first command you gave me: ls -ld /var/www/vhosts/place2chat.com/httpdocs

and it gave me this:

-sh-4.1$ ls -ld /var/www/vhosts/place2chat.com/httpdocs
ls: cannot access /var/www/vhosts/place2chat.com/httpdocs: No such file or directory

Regards, Herman.
 
Hi HeRiNo,

your user doesn't have sufficient rights, which you used for the command(s) over the command line. Pls. be aware, that chrooted accounts only have rights for folder and files INSIDE the defined locations, which they are granted access to.
Your user should however have the rights for the second command, if it's the domain specific system user.

Pls. see as well ( with root - account !!! ), for which location the user has given rights:
grep YOUR_USERNAME /etc/passwd
 
Hello,

it is getting to complicated for me. Is it maybe possible that I give you access so you can see if you can fixe this for me? If you like I will pay you for it.

Best Regards, Herman.
 
Hi HeRiNo,

ls: cannot access /var/www/vhosts/place2chat.com/httpdocs: No such file or directory
Another reason, why you may experience a result like this, is either that you changed the standart documentroot, or as second reason, your "copy&paste" of the command from the forum to the command line was with forum formats, which could result in additional ( invisible ) code at your ssh - client.

In the first case, I recommend to list the directory "/var/www/vhosts/place2chat.com", to verify, that the directory ( folder ) "httpdocs" exists!
In the second case, I recommend to TYPE the command on your command line, instead of using "copy&paste", to avoid described issues, or you copy&paste the command first to notepad ( or any similar text editor ), before you copy&paste again the lines now from the text - editor into the command line of your ssh-client.
 
Back
Top