The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. troller88

    troller88 Registered

    Joined:
    Apr 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. troller88

    troller88 Registered

    Joined:
    Apr 28, 2005
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page