LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2004, 03:02 AM   #1
leongoogs
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat 8.0, Mandrake 9.1 9.2
Posts: 23

Rep: Reputation: 16
After file oops ? Forbidden You don't have permission to access / on this server.


Still a Newbie

Running Mandrake 9.2 .
Apache 2
After accidentally extracting some files into /var/www/html
I deleted them and restored the original files from a backup. I now get on
the browser.

Forbidden

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

I have tried changing permissions for /var/www/html to
group apache and owner apache and 755 permissions
and the individual files. I have done the service http restart .
Still the same message. What other things can I check?
Server has it's version messages so I guess the server is partially functional ?
How can a simple file replacement foul up the permissions ?

I have tried it on the LAN and from the WWW side same message . Mail server is still working so
internet is connected and working. External firewall hasn't been changed.

.htaccess file is still there

Last edited by leongoogs; 04-12-2004 at 03:11 AM.
 
Old 04-12-2004, 08:59 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What files are in there:
ls -la /var/www/html

Are you accessing a file directly, ie "/file.html", or just the "/" directory?
 
Old 04-13-2004, 05:14 AM   #3
leongoogs
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat 8.0, Mandrake 9.1 9.2
Posts: 23

Original Poster
Rep: Reputation: 16
I have tried the IP address http://XXX.XXX.X.XXX/ , Normally works , http://XXX.XXX.X.XXX/Index.html , Normally works , http://XXX.XXX.X.XXX/index.shtml , Normally works,


I can Browse file:///var/www/html/Index.html and file:///var/www/html/index.shtml and both work
fine so the page content seems OK .

Files are .
Index.html
platform.html
index.shtml
optim.html
Image1.gif
.htaccess
favicon.ico

and 3 sub directories that have not been touched .

Thanks for the reply .

Leo
 
Old 04-13-2004, 10:27 AM   #4
leongoogs
LQ Newbie
 
Registered: Nov 2003
Distribution: Red Hat 8.0, Mandrake 9.1 9.2
Posts: 23

Original Poster
Rep: Reputation: 16
Hello

I found it . Checked permissions with ls -la . Turns out there must have been a .htaccess
file in the archive I extracted. The ownership of the .htaccess file looked fishy so
extracted the archive to a dummy directory and the creation date and ownership of .htaccess was the same as the one in /var/www/html directory, deleted it and all is good again.

Thanks for prompting david
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting permission, file access. Apogeal1 Linux - Newbie 5 06-20-2005 09:17 PM
Forbidden access to soft link on apache web server bnj Linux - Software 3 05-03-2005 09:14 AM
Forbidden access to apache server wisdom Linux - Software 2 12-25-2004 10:29 PM
You don't have permission to access / on this server. jkpalmer52 Linux - General 4 01-27-2004 05:05 PM
You don't have permission to access / on this server jaydave Linux - Networking 1 03-15-2003 07:11 AM


All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration