Skip to main content

Error 403 forbidden,directory index forbidden

Comments

11 comments

  • rpvw
    If you installed Wordpress using a provisioner, it may have installed to a folder that you are not expecting eg
    http://www.yourdomain.com/wp/
    The messages you are getting suggests there is no 'index.anything' in the webroot, and that indexes have been disabled (possibly by your web host) see your cPanel >> Advanced >> Indexes section if available More information on indexing can be found at
    0
  • cPanelMichael
    Hello, Could you let us know the contents of the .htaccess file in the account's home directory (/home/$username/.htaccess)? Ensure to exclude any real domain names or IP addresses. Thank you.
    0
  • Lemon Knight
    Hello, Could you let us know the contents of the .htaccess file in the account's home directory (/home/$username/.htaccess)? Ensure to exclude any real domain names or IP addresses. Thank you.

    There seems to be no .htaccess file in the main directory I've attached the contents of the home directory in the image below. Thank you
    0
  • Lemon Knight
    I tried changing the index setting, it was at default when I checked. It showed the following error when i changed it. " The index settings on "/home/username/access-logs" have been updated. Its indexes are now: unavailable. Failed to alter index settings. /.htaccess: Permission denied " . I belive the issue is with the .htaccess file? Thank You.
    0
  • rpvw
    If you can't see the .htaccess file in the root (home eg /home/$username) or in the webroot /public_html folder you may not have enabled Show Hidden Files (dotfiles) in the file manager or FTP client you are using. In file manager click on the Settings button top right and check the Preferences you require. If you get a 403 Forbidden errpr when browsing to www.yourdomain.tld, look in the /public_html folder for any other sub folders where your Wordpress site might have been installed in eg /wp The only other possibility is that you installed wordpress to a sub-domain located outside of web root, and have not configured the document root for the sub-domain. The cutoff screenshot gave no indication of there being sub-domain folders in the area that we can see.
    0
  • Lemon Knight
    The public html has a wp sub folder but there is no .htaccess file in either the public_html folder or the wp folder. i used the cpanel instal scripts option to instal WP so I don't think there is a sub folder outside the web root. Neither do I see one part from the one in the public_html root folder. Thank you. 47567 47571
    0
  • Infopro
    Top right corner of File Manager is a Settings button. Check it to make sure Show hidden (dot files) option is checked.
    0
  • rpvw
    So if you browse to
    http://yourdomain.tld/wp
    do you not see your Wordpress site ?
    0
  • Lemon Knight
    I do. When I use /wp, however it should be working without /wp, I changed the setting on wordpress to do that.
    0
  • Lemon Knight
    Thanks, found it. The .htaccess file shows this # BEGIN WordPress # END WordPress
    0
  • cPanelMichael
    I do. When I use /wp, however it should be working without /wp, I changed the setting on wordpress to do that.

    Hello, The error message likely appears because no index file exists in the public_html directory. You'd need to move the installation over to the public_html directory if you want it to open when accessing the domain name. WordPress documents how to do this at: Moving WordPress " WordPress Codex Thank you.
    0

Please sign in to leave a comment.