Website's layout is broken: pcfg_openfile: unable to check htaccess file

Created:

2016-11-16 12:59:21 UTC

Modified:

2017-08-08 13:33:56 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website's layout is broken: pcfg_openfile: unable to check htaccess file

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Website's layout is broken. Errors like as following one can be found in /var/www/vhosts/system/example.com/logs/error_log file:

Thu Sep 08 13:52:33 2016] [crit] [client 10.20.30.40] (13)Permission denied: /var/www/vhosts/example.com/httpdocs/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.example.com/index.html

Cause

Incorrect permissions for /var/www/vhosts/example.com/httpdocs/css/ directory.

Resolution

  1. Make sure that css directory has 0755 permissions and ownership ftp_user:psacln :

    # stat /var/www/vhosts/example.com/httpdocs/css/
    File: `/var/www/vhosts/example.com/httpdocs/css/'
    Size: 4096 Blocks: 8 IO Block: 4096 directory
    Device: 7fe0b621h/2145433121d Inode: 563937 Links: 2
    Access: (0755/drwxr-xr-x) Uid: (10008/ftp_user) Gid: ( 503/ psacln)
    Access: 2016-09-08 03:07:13.793221022 +0700
    Modify: 2016-08-25 22:10:27.277849117 +0700
    Change: 2016-08-25 22:10:27.277849117 +0700
  2. If they are not, set correct ones as follows:

    # chmod 0755 /var/www/vhosts/example.com/httpdocs/css/
    # chown ftp_user:psacln /var/www/vhosts/example.com/httpdocs/css/
Have more questions? Submit a request
Please sign in to leave a comment.