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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

403 Access Denied

Discussion in 'General Discussion' started by elis2, Aug 15, 2017.

  1. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator
    Dear

    After configuring the server and up website show error to all website
    403 Access Denied


    plz hellp me

    thank uou
    best regards
     
    #1 elis2, Aug 15, 2017
    Last edited: Aug 15, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you let us know what you see in /usr/local/apache/logs/error_log when you encounter this error message? Ensure to replace real domain names and IP addresses with examples when posting the contents of the log file.

    Thank you.
     
    elis2 likes this.
  3. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator
    Dear support

    webserver is litespeed set me is change to apache fix problme.

    problme is litespeed What to check out؟


    best regards
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You'd still need to review the error log referenced in my last response (it's still found at the same location with LiteSpeed) to see the specific error message.

    Thank you.
     
    elis2 likes this.
  5. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator
    2017-08-15 14:36:33.730 [ERROR] [HTAccess] Failed to open [/home/username/public_html/.htaccess]: Permission denied
    2017-08-15 14:36:33.730 [INFO] [cl_phpselector] PID: 18893, add child process pid: 20771, procinfo: 0x10a4ce0
    2017-08-15 14:36:33.744 [NOTICE] [] [STDERR] PHP Warning: opendir(/home/username/public_html/): failed to open dir: Permission denied in /usr/local$
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you verify the permissions utilized on the .htaccess file and the public_html directory? EX:

    Code:
    stat /home/username/public_html/.htaccess
    stat /home/username/public_html/
    Remember to replace any real usernames or domain names with examples when posting the output here.

    Thank you.
     
    elis2 likes this.
  7. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator
    Dear thank you

    me run commnd

    cd /home

    [removed command]

    fix problme.


    thank you
     
    #7 elis2, Aug 15, 2017
    Last edited by a moderator: Aug 15, 2017
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm glad to see you were able to solve the issue. Note that I removed the command from your last response because we recommend updating file permissions on an individual basis when needed, as opposed to changing the permissions of all files or directories at once. The following document highlights the file permission and file ownership considerations with each PHP handler:

    PHP Handlers - EasyApache 4 - cPanel Documentation

    Thank you.
     
    elis2 likes this.
  9. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator
    Dear


    This problem still persists for me.

    log /usr/local/apache/logs/error_log

    2017-08-24 11:48:51.681 [ERROR] [HTAccess] Failed to open [/home/username/public_html/.htaccess]: Permission denied


    plz hellp me.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to open a support ticket using the link in my signature so we can take a closer look at how your system and PHP handlers are configured to determine why that error message is occurring.

    Thank you.
     
    elis2 likes this.
  11. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator

    Dear

    thank you,me crate ticket number ticket:8812943

    Best regards
     
  12. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator
    Dear support

    plz hellp me .me crate ticket.

    thank you

    best regards
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I see the support ticket was successfully opened. I'll monitor this ticket and update this thread with the outcome once it's complete.

    Thank you.
     
  14. elis2

    elis2 Member

    Joined:
    Aug 14, 2017
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    el
    cPanel Access Level:
    Root Administrator
    Dear

    Thank you

    Please take a quick look at my problem seriously

    I am waiting for your response

    Best Regards
     
  15. behinam

    behinam Member

    Joined:
    May 9, 2017
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Dubay
    cPanel Access Level:
    Root Administrator
    set public_html permision to 755
     
Loading...

Share This Page