11
stefan88
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/26 19:23

  • stefan88

  • Community Support Member

  • Posts: 1085

  • Since: 2004/9/20


Hi,

if you have mod_sec installed (403 can be raised by it) check it.

Check the owner of the files - some installations need specific owner/group of the files.

in apache config (httpd.conf) file check where are logs and check access and error logs. You may need to set log setting to log errors/access.
..

12
kevcar
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/26 20:14

  • kevcar

  • Not too shy to talk

  • Posts: 127

  • Since: 2007/6/2 1


I have uploaded a index.html file to inform members that the site is down and that is showing? why is that showing and not my website?

13
drbowen
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/26 20:29

  • drbowen

  • Just popping in

  • Posts: 19

  • Since: 2006/4/28


Dear Kevcar,

I was Googling around and found this reference that may have relevance to your situation. Check it out.

http://www.linuxtopia.org/online_book ... lcommon-section-0055.html

On Redhat Enterprise Linux the relevant error messages may relate to the SELinux which imposes a lot of extra restrictions on permissions and access of files. The relevant error messages appear to reside in:

/var/log/messages

What are the names of the directories, in order, from the file root:

/

For instance on my server the web server root is:

/usr/local/www/data/xoops/

This should be listed in the the mainfile.php To answer the question you asked above, open a command line interface, Su (change user) to root. From the root prompt (looks like a # sign). Type the following:

ls -al public_html

This needs to be executed from the directory where public_html is located.

Sam Bowen, MD
www.oemr.org

14
kevcar
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/26 20:41

  • kevcar

  • Not too shy to talk

  • Posts: 127

  • Since: 2007/6/2 1


Hi Sam,

Thanks for that info, as a newbie its going over my head, so I might have to wait for the designer to get back from his holidays 2nd Nov, worse luck.

Thanks again

Kevin

15
drbowen
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/26 21:21

  • drbowen

  • Just popping in

  • Posts: 19

  • Since: 2006/4/28


Kevin,

I can see the content of your index.html.

Why don't you replace the contents of index.html with the following:

<head><title>Royal Welsh Veterans</title><script type="text/javascript">window.location="index.PHP";</script></head>

Save and reload.

Sam Bowen, MD
www.oemr.org
another XOOPS site

16
kevcar
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/26 22:21

  • kevcar

  • Not too shy to talk

  • Posts: 127

  • Since: 2007/6/2 1


I tried that script you sent this message comes up:

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

17
drbowen
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/27 15:59

  • drbowen

  • Just popping in

  • Posts: 19

  • Since: 2006/4/28


If you change to the public_html directory and type

ls

does it list the index.php?

You might try modifying the script to add a ./ in front of the index.php.

<head><title>Royal Welsh Veterans</title><script type="text/javascript">window.location="./index.PHP";</script></head>

Sam Bowen, MD
www.oemr.org

18
kevcar
Re: HTTP 403 (Forbidden) Can't log on to my site
  • 2007/10/28 14:00

  • kevcar

  • Not too shy to talk

  • Posts: 127

  • Since: 2007/6/2 1


Hi Sam,

All I get is this with the script:

http://royalwelshveterans.co.uk/index.PHP
(You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.)

Login

Who's Online

57 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 57


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits