Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Issue htaccess pcfg_openfile

Discussion in 'Security' started by troller88, Jan 20, 2016.

  1. troller88

    troller88 Registered

    Joined:
    Apr 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    On my Cpanel accounts I see following errors while trying to install wordpress:

    public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/account/public_html/' is executable

    Issue is, that there is no .htaccess and root folder is set to 755 but the issue still remains. I upload all my files via sftp and the cpanel account login.
    Does anybody know how to fix this issue on WHM/Cpanel? To me it looks like apache has no access to the files or whatever.

    Thanks in advance
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    The following permissions/ownership values are configured for the public_html directory during account creation when mod_ruid2 is disabled:

    Permissions: 0750
    Ownership: Username:Nobody

    This changes to the following when you have mod_ruid2 enabled:

    Permissions: 0750
    Ownership: Username:Username

    Could you ensure your public_html directory matches this?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. troller88

    troller88 Registered

    Joined:
    Apr 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    public_html is 750 and Owned by 1003 (Dont know what that means) when I get this error. What do I do wrong or what do I have to change?
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    This suggests ownership of the directory is not configured properly. Please update the ownership with a command such as:

    Code:
    chown $username.nobody /home/$username/public_html
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. troller88

    troller88 Registered

    Joined:
    Apr 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    Thank a lot, but what if also all files i uploaded have the same strange owner? Currently that is the case and how Do i prevent cpanel to create accounts that strange way?

    Thank you
     
  6. troller88

    troller88 Registered

    Joined:
    Apr 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    Ok now I see in filezilla that public_html owner is account name + nobody but I still get these errors:

    public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/accountname/public_html/' is executable

    I dont have any .htaccess in there.
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's likely permissions on the public_html directory or the account's home directory are invalid. Could you open a support ticket using the link in my signature so we can review the ownership/permission values and correct them? Ensure you post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice