3 out of 4 members use OSTraining at least once a week. You can build great websites. We can help.   Plans from $4 per month
Welcome, Guest
Username: Password:

TOPIC: Drupal 403 forbidden error when reinstalling

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87723

I recently decided to start over on the website I'm developing for our VFW post. The server I use has scripts for deleting and installing Drupal. The current version it installs is 7.26. I have done this evolution previously without problems; but this time I encountered the following message when I try to access the site:

Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

I have not been able to find a solution anywhere that works, can you help?
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87749

  • steve
  • steve's Avatar
  • NOW ONLINE
  • Posts: 10808
  • Thank you received: 381
Hi joeateb

That sounds like a problem with your hosting account.

Two questions for you:

1) Who is your hosting company?
2) Are you able to login and see your files? Are all the Drupal files correctly installed?
Last Edit: 3 years 9 months ago by steve.
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87791

To answer your questions:

1. My site is hosted on a server that my former boss gave me space on.

2. Yes, I can see my files and I can access and edit them with cpanel.
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87800

Hello, I had this problem also. I am with Hostgator, we figured out that you would need to rename your file because, for some reason it will not delete 2 php files..
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87814

  • steve
  • steve's Avatar
  • NOW ONLINE
  • Posts: 10808
  • Thank you received: 381
Hi joeateb

Is this an Apache or Windows server?

If it's an Apache server, can you check for the .htaccess file ... if it exists, then rename it so something like .htaccess-backup
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87830

Which file did you rename? Do know what php files were not deleted?

Thanks
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87834

It's an Apache server, found 2 .htaccess files, one in tmp folder and one in Public_html. renamed both, no change, message the same.
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87874

  • steve
  • steve's Avatar
  • NOW ONLINE
  • Posts: 10808
  • Thank you received: 381
OK, thanks Joe

Next item on the list ... permissions.

Can you check what the file and folder permissions are? Normally folders should be 755 and files should be 644:
www.ostraining.com/blog/drupal/permissions/

However, some servers have odd set ups. If 755 and 644 don't work, are you able to check with the person who runs this server?
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87904

I will contact my old boss and ask him to put me in touch with the people who run the server and get back to you.
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #87970

  • steve
  • steve's Avatar
  • NOW ONLINE
  • Posts: 10808
  • Thank you received: 381
Thanks joeateb

Most servers want 755 for folders, but some want 777 (that's not safe) and some want other settings.

I'd say this permissions issue is definitely the next place to look to fix this.
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #88223

Problem resolved by server admin personnel, no indication of what the problem was.
Please become a member of
OSTraining to reply to this post.

Drupal 403 forbidden error when reinstalling 3 years 9 months ago #88239

  • steve
  • steve's Avatar
  • NOW ONLINE
  • Posts: 10808
  • Thank you received: 381
Thanks joeateb, that's good news, although I guess it would have been useful to know what they fixed on the server.
Please become a member of
OSTraining to reply to this post.
3 out of 4 members use OSTraining at least once a week. You can build great websites. We can help.   Plans from $4 per month