• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Issue CHMOD access problem when i create a new host or directory

NamNam

Basic Pleskian
Hi,

I've a problem with my plesk 12.5.30 : when i create a new hosting or a directory in hosting for sub-domain, iwhen i use wordpress and try to add or update plugin for example, wordpress request FTP access.

I need use this commande : sudo chown -R host_user: host_directory
for restore access to the directory, because it's seem it's not created by default.

Can you help me for restore right access when i create a new subdomain directory or new hosting ?
 
Hi NamNam,

pls. be informed, that you should have the following permissions, when you work with Plesk:

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

( if the definition "user" confuses you, pls. always remember, that EACH domain, has its very own domain-specific user, which is set, when adding a domain in Plesk. )

The Plesk documentation misses the fact, that ALL directories ( folders ) and files inside the (sub)domain - specific documentroot, should have the permissions:

DOMAIN-SPECIFIC-SYSTEM-USER : psacln


Examples:

Directory ( folder ):

/var/www/vhosts/DOMAIN.COM/httpdocs => DOMAIN-SPECIFIC-SYSTEM-USER : psaserv

/var/www/vhosts/DOMAIN.COM/SUB-DOMAIN.DOMAIN.COM = DOMAIN-SPECIFIC-SYSTEM-USER : psaserv

BUT:

Directory ( folder ):

/var/www/vhosts/DOMAIN.COM/httpdocs/img => DOMAIN-SPECIFIC-SYSTEM-USER : psacln

/var/www/vhosts/DOMAIN.COM/SUB-DOMAIN.DOMAIN.COM/img => DOMAIN-SPECIFIC-SYSTEM-USER : psacln

Files:

/var/www/vhosts/DOMAIN.COM/httpdocs/img/example.jpg => DOMAIN-SPECIFIC-SYSTEM-USER : psacln
/var/www/vhosts/DOMAIN.COM/httpdocs/index.html => DOMAIN-SPECIFIC-SYSTEM-USER : psacln

/var/www/vhosts/DOMAIN.COM/SUB-DOMAIN.DOMAIN.COM/img/example.jpg => DOMAIN-SPECIFIC-SYSTEM-USER : psacln
/var/www/vhosts/DOMAIN.COM/SUB-DOMAIN.DOMAIN.COM/index.html => DOMAIN-SPECIFIC-SYSTEM-USER : psacln
 
Ok, thx for information, BUT my problem is i've no correct permission when i create an hosting...
 
Try running...
Code:
# plesk repair fs

and you can check the db with...
Code:
# plesk repair db

See if one of those helps.
Kind regards

Lloyd
 
That's help but doesn't resolve the problem, each new hosting created, wordpress (and user) haven't permission...
 
that help just for repair (i have 1 error) but for the rest, that's don't give any permission, and i need to execute sudo chown -R host_user: host_directory for update wordpress file...
 
This is just the lines who be interested :

Code:
[2016-06-07 06:25:53] ERR [panel] Task failed: id=42, pid=29912, type=aps-cache, error=Connection timed out after 30001 milliseconds
[2016-06-07 14:54:40] ERR [panel] Inconsistent zone "znart.eu": The NS record "znart.eu. IN NS serv.znart.eu." has no address records (A or AAAA).
[2016-06-07 14:55:16] ERR [panel] Inconsistent zone "znart.eu": The NS record "znart.eu. IN NS serv.znart.eu." has no address records (A or AAAA).
[2016-06-07 14:58:07] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/vhostmng-structure'] with exit code [1]
[2016-06-07 14:58:07] ERR [1] '/opt/psa/admin/bin/vhostmng-structure' failed with code 1.

stdout:
Unable to unlink directory entry class-json.php: Permission denied

System error 13: Permission denied


stderr:
Unable to unlink directory entry class-json.php: Permission denied

System error 13: Permission denied

[2016-06-08 06:25:45] ERR [panel] Task failed: id=43, pid=29801, type=aps-cache, error=Connection timed out after 30000 milliseconds
[2016-06-09 06:25:29] ERR [panel] Task failed: id=44, pid=2744, type=aps-cache, error=Recv failure: Connection reset by peer
[2016-06-10 06:25:47] ERR [panel] Task failed: id=45, pid=12728, type=aps-cache, error=Connection timed out after 30000 milliseconds
[2016-06-12 06:47:33] ERR [panel] Error: Connection timed out after 30000 milliseconds
[2016-06-12 22:42:57] ERR [panel] [Action Log] Failed login attempt with login 'admin' from IP 198.7.58.98
[2016-06-12 22:43:07] ERR [panel] [Action Log] Failed login attempt with login 'admin' from IP 198.7.58.98
[2016-06-12 22:43:35] ERR [panel] [Action Log] Failed login attempt with login 'admin/istrator' from IP 198.7.58.98
[2016-06-13 06:26:02] ERR [panel] Task failed: id=48, pid=7576, type=aps-cache, error=Connection timed out after 30000 milliseconds

Even nada : no particular problem in log file...
 
And i see, i've the same problem when i create and ftp access... ftp access working, but permission denied to upload any files...
 
Back
Top