Skip to main content

pcfg_openfile: unable to check htaccess file

Comments

14 comments

  • cPanelMichael
    Hello, Check the permissions and ownership values on the "/home/$username" and "/home/$username/public_html" directories to ensure they match what's used for other accounts on the server. If you do not have root access, let us know the permissions on the public_html directory using FTP or File Manager. Thank you.
    0
  • Nirjonadda
    Hello, Check the permissions and ownership values on the "/home/$username" and "/home/$username/public_html" directories to ensure they match what's used for other accounts on the server. If you do not have root access, let us know the permissions on the public_html directory using FTP or File Manager. Thank you.

    /public_html/.htaccess permissions is 0644
    0
  • cPanelMichael
    That's the permissions on the .htaccess file. I'm referring to the "public_html" directory itself. Thanks!
    0
  • Nirjonadda
    That's the permissions on the .htaccess file. I'm referring to the "public_html" directory itself. Thanks!

    Does not work this command but public_html directory Permissions: 0750 viewed via cPanel File Manager.
    [root@na ~]# /home/$nadda -bash: /home/: Is a directory [root@na ~]# /home/$nadda/public_html -bash: /home//public_html: No such file or directory
    0
  • cPanelMichael
    Hello, Those are not actual commands. You'd have to use a command such as:
    stat /home/username/public_html
    Thank you.
    0
  • Nirjonadda
    Hello, Those are not actual commands. You'd have to use a command such as:
    stat /home/username/public_html
    Thank you.

    @cPanelMichael Yes now get work the command. Please let me know this fix.
    [root@na ~]# stat /home/nadda/public_html File: "/home/nadda/public_html" Size: 4096 Blocks: 16 IO Block: 4096 directory Device: fd02h/64770d Inode: 357074 Links: 21 Access: (0750/drwxr-x---) Uid: ( 1001/ nadda) Gid: ( 1001/ nadda) Context: system_u:object_r:httpd_user_content_t:s0 Access: 2016-09-06 05:47:55.482877648 +0600 Modify: 2017-04-04 22:31:09.372692812 +0600 Change: 2017-04-04 22:31:09.372692812 +0600 Birth: - [root@na ~]#
    0
  • cPanelMichael
    Hello, Browse to "WHM >> Tweak Settings" under the "Security" tab and let us know if "Enable File Protect" is enabled. If not, try enabling it, then disabling it again to reset file permissions on the public_html directory to default. If it is enabled, try running the following command to correct the permissions:
    /usr/local/cpanel/scripts/enablefileprotect
    Thank you.
    0
  • Nirjonadda
    Hello, Browse to "WHM >> Tweak Settings" under the "Security" tab and let us know if "Enable File Protect" is enabled. If not, try enabling it, then disabling it again to reset file permissions on the public_html directory to default. If it is enabled, try running the following command to correct the permissions:
    /usr/local/cpanel/scripts/enablefileprotect
    Thank you.

    "Enable File Protect" is enabled by default, OK I do run command to correct the permissions.
    [root@na ~]# /usr/local/cpanel/scripts/enablefileprotect Setting /home permissions to 0711......Done Setting permissions for.....nirjonadda " nadda " nilbashona " onabiladda " ...Done [root@na ~]#
    Do have a issue with option Optimize .htaccess (AllowOverride) via WHM Home "Service Configuration "Apache Configuration "Global Configuration? System Default: search_full_path ? 46139
    0
  • cPanelMichael
    Do have a issue with option Optimize .htaccess (AllowOverride) via WHM Home "Service Configuration "Apache Configuration "Global Configuration? System Default: search_full_path ?

    That should not result in the error message you reported. Could you confirm if the permissions on the public_html directory were updated? Thank you.
    0
  • Nirjonadda
    That should not result in the error message you reported. Could you confirm if the permissions on the public_html directory were updated? Thank you.

    Still are getting the log.
    [Wed Apr 05 22:32:16.376812 2017] [core:crit] [pid 19485] (13)Permission denied: [client 180.97.106.37:19358] AH00529: /home/nilbashona/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/nilbashona/public_html/' is executable [Wed Apr 05 22:33:55.545890 2017] [core:crit] [pid 20267] (13)Permission denied: [client 180.97.106.37:51419] AH00529: /home/onabiladda/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/onabiladda/public_html/' is executable
    0
  • cPanelMichael
    Hello, Feel free to open a support ticket using the link in my signature so we can take a closer look and determine which directory is using the incorrect permissions or ownership values. Thank you.
    0
  • Nirjonadda
    Hello, Feel free to open a support ticket using the link in my signature so we can take a closer look and determine which directory is using the incorrect permissions or ownership values. Thank you.

    Support Request ID is: 8358285
    0
  • cPanelMichael
    Hello, To update, it looks like the issue was not reproducible. One other item to check would be to verify if the system is using Mod_Ruid2 and "EXPERIMENTAL: Jail Apache Virtual Hosts using mod_ruid2 and cPanel" jailshell." is enabled in "WHM >> Tweak Settings"? If so, there's an internal case (CPANEL-10163) that might relate to the issue. Thank you.
    0
  • behinam
    check apache configuration and enable suexec
    0

Please sign in to leave a comment.