Article ID: 5394, created on Jun 26, 2008, last review on Nov 19, 2015

  • Applies to:
  • Plesk 12.5 for Linux


Tomcat Web Application needs to write into domains' httpdocs folder, but gets permission denied exception.


  1. Allow read/write operation on the domain's httpdocs folder for Tomcat application by editing $CATALINA_HOME/catalina.policy file. For the app application and the domain it will be:

    grant codeBase "jar:file:$\{catalina.home\}/work/PSA/" \{
        permission "/var/www/vhosts/" "read,write";
  2. Restart Tomcat

  3. Add the system user, that is used by Tomcat service, into psaserv group. The username can be found in the main Tomcat configuration file:

    # grep TOMCAT_USER  /etc/tomcat*/tomcat*.conf
    # usermod  -G psaserv tomcat 
  4. Allow psaserv group to write to domains' httpdocs directory:

    # chmod 770 /var/www/vhosts/

Note for Plesk 12.5:

  • Tomcat user:

    # grep TOMCAT7_USER /etc/default/tomcat7
  • catalina.policy file is /etc/tomcat7/policy.d/03catalina.policy

Search Words

write permissions httpdocs tomcat application

29d1e90fd304f01e6420fbe60f66f838 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 742559b1631652fadd74764ae8be475e e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF