I'M GETTING A MSG THAT SAYS HTTP ERROR-403 FORBIDDEN ON MY WEBSITES

8 replies
  • WEB DESIGN
  • |
I HEAR THAT I HAVE TO CHANGE SOME FILES BECAUSE ACCORDING TO MY

HOSTING COMPANY, "JUSTHOST" THEY SAID

We am sorry that your website(s) can not be accessed correctly. This is because the public_html directory is missing index page so the domain display a default 404 page on browser. Please check,

1, If the file existed on server.
2, If the url is wrong
3, if there is any typo

For Forbidden error, make sure the permission is set correctly. file - 644 folder - 755 then refer to the link to resolve.

- HTTP Error.


The link reads below...my question is HOW/WHERE DO I GO TO DO ANY OF THIS IN CPANEL???

THANKS!






Check the folders' and files' permissions. Sometimes after uploading files via ftp or upgrading certain scripts the permissions on the files get changed. Linux permissions should generally be set to either 644 or 755 depending on what the script requires. E.G. If a file permissions is 444, 111, etc - the server will not be able to read and execute the script properly.
NOTE: if you cannot seem to change the permissions of a file, check the folder's permissions above it and make sure the permissions are set properly
Check the .htaccess file for probable causes. There are a variety of possible causes for a 403 - Forbidden error that can occur in the .htaccess.
The .htaccess might be blocking all IP addresses except a few. The code for that would look something like the following:
order allow,deny
allow from 173.254.38.123
deny from all
The .htaccess may also be missing a line that says DirectoryIndex. This is particularly less common because the DirectoryIndex line is typically not needed in the .htaccess file.
DirectoryIndex index.html index.cgi index.php
Try touching the .htaccess file.
touch .htaccess
#error403 #forbidden #http #msg #websites
  • Profile picture of the author Mohsin Rasool
    Please let me know what is your website?
    You can PM me if you cannot share in public so i can see what could be the issue.

    regards,
    Mohsin
    {{ DiscussionBoard.errors[7109703].message }}
  • Profile picture of the author chretit
    Hi, brik2500,
    All these instructions seem so daunting and cryptic when you read them but like most technology the bark is, usually, worse than the bite unless it’s Apple Maps on iPhone5.

    Please login into your cPanel: http://www.yourdomainname.com/cpanel

    Once you’re in cPanel, go to File Manager and into your public_html folder. There you will see a list of file details, including file permissions. You can right click on a file to change permissions or view/edit it. And you can check if a particular file exists.

    Hope that's clear, if not post back

    All the best
    {{ DiscussionBoard.errors[7110754].message }}
    • Profile picture of the author brik2500
      Originally Posted by chretit View Post

      Hi, brik2500,
      All these instructions seem so daunting and cryptic when you read them but like most technology the bark is, usually, worse than the bite unless it’s Apple Maps on iPhone5.

      Please login into your cPanel: http://www.yourdomainname.com/cpanel

      Once you’re in cPanel, go to File Manager and into your public_html folder. There you will see a list of file details, including file permissions. You can right click on a file to change permissions or view/edit it. And you can check if a particular file exists.

      Hope that's clear, if not post back

      All the best

      So when I get to the file permissions page, should it be the name of the site, or a page,etc?

      UPDATE: I went to cpanel, and I clicked on the public folder...but I can't even find it in there.

      WHAT NOW???
      {{ DiscussionBoard.errors[7111980].message }}
  • Profile picture of the author chretit
    Do you, normally, use cPanel for administrating your website ie allocating more bandwidth or creating email addresses?

    Assuming you're familiar with cPanel: When you log in, you'll see lots of different icons like Email Accounts, Backups, etc.

    One of them will say File Manager. If you click on that you will see a list of file names. (you may see a small dialog box - click OK.)

    Look for index.php This is what your host suggests in the instructions you posted. But, now that you have posted a link to your website, it looks like something else is amiss because that is not what a WordPress home directory should look like.

    At this point this needs to be handled by someone who has access to your cPanel.

    If you're not comfortable using cPanel yourself, someone else needs to have a look.

    Who do you trust?

    Keep us posted
    {{ DiscussionBoard.errors[7112414].message }}
  • Profile picture of the author chretit
    Hi, noticed your update.

    You went into the public_html folder and there's no index.php, right?

    Are there more files there than what we can see in the browser?

    Can you try to remember, did anything, anything at all changed (any settings changed, domain name settings, etc) between when it was working and now?

    Do you recognise the files we can see in the Index Of?
    {{ DiscussionBoard.errors[7112466].message }}
    • Profile picture of the author brik2500
      Originally Posted by chretit View Post

      Hi, noticed your update.

      You went into the public_html folder and there's no index.php, right?

      Are there more files there than what we can see in the browser?

      Can you try to remember, did anything, anything at all changed (any settings changed, domain name settings, etc) between when it was working and now?

      Do you recognise the files we can see in the Index Of?
      Hey,

      I can't find it either...that's what the hosting company mentioned..but if I just installed the site last night...how is it that the index page is missing.

      I have no clue why it wouldn't be there.
      {{ DiscussionBoard.errors[7112864].message }}
  • Profile picture of the author chretit
    Hey, brik2500. Got your PM. Replied.
    {{ DiscussionBoard.errors[7112917].message }}

Trending Topics