Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old January 2nd, 2008   #1
guitarman
Just Give Me the Beans!
 
Join Date: May 2006
My beans are hidden!
Forbidden/You don't have permission to access / on this server

Hi Folks and Happy New year,
I have set up my Apache server and copied my 4 web site files into both /var/www and /var/www/mysite.com directories have restarted Apache2 successfully, but when I try to access my server with 192.168.2.10 (Ubuntu IP address on my local line) I get:


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

I found info on the Apache.org FAQs and did a chmod -x /var/www and chmod -x /var/www/mysite.com, but I still get the same error.

Also did the following as per Apache.org
"Search your conf/httpd.conf file for this exact string: <Files ~>. If you find it, that's your problem -- that particular <Files> container is malformed. Delete it or replace it with <Files ~ "^\.ht"> and restart your server and things should work as expected."

But still no success. Any ideas would be greatly appreciated.

Thanks again,
guitarman is offline   Reply With Quote
Old January 2nd, 2008   #2
foolsh
Way Too Much Ubuntu
 
foolsh's Avatar
 
Join Date: Aug 2005
Beans: 271
Kubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to foolsh
Re: Forbidden/You don't have permission to access / on this server

sudo nautilus
then browse to the /var/www/ folder and right click /mysite then choose proberties
next go to the permissions tab and make Folder Access on Others read "Access Files"
if your using kubuntu instead of "sudo nautilus" use "sudo konqueror"

atleast that sounds like the problem to me
hope this helps
foolsh is offline   Reply With Quote
Old January 2nd, 2008   #3
cecure
Just Give Me the Beans!
 
Join Date: Jan 2008
Beans: 51
Ubuntu 7.10 Gutsy Gibbon
Re: Forbidden/You don't have permission to access / on this server

Quote:
Originally Posted by guitarman View Post
Hi Folks and Happy New year,
I have set up my Apache server and copied my 4 web site files into both /var/www and /var/www/mysite.com directories have restarted Apache2 successfully, but when I try to access my server with 192.168.2.10 (Ubuntu IP address on my local line) I get:


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

I found info on the Apache.org FAQs and did a chmod -x /var/www and chmod -x /var/www/mysite.com, but I still get the same error.

Also did the following as per Apache.org
"Search your conf/httpd.conf file for this exact string: <Files ~>. If you find it, that's your problem -- that particular <Files> container is malformed. Delete it or replace it with <Files ~ "^\.ht"> and restart your server and things should work as expected."

But still no success. Any ideas would be greatly appreciated.

Thanks again,
First, does it work when you access it as localhost?


Second, try making the files readable and executable by everyone, if you only want users to access your mainpage try:
Code:
sudo chmod a=rx /var/www/index.html
or if you want all files readable by everyone
Code:
sudo chmod -R a=rx /var/www
hope that helps
cecure is offline   Reply With Quote
Old January 4th, 2008   #4
foolsh
Way Too Much Ubuntu
 
foolsh's Avatar
 
Join Date: Aug 2005
Beans: 271
Kubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to foolsh
Re: Forbidden/You don't have permission to access / on this server

Quote:
Originally Posted by cecure View Post
First, does it work when you access it as localhost?


Second, try making the files readable and executable by everyone, if you only want users to access your mainpage try:
Code:
sudo chmod a=rx /var/www/index.html
or if you want all files readable by everyone
Code:
sudo chmod -R a=rx /var/www
hope that helps
if this is a web page open to the public please don't make the files executable by anyone that could lead to big problems
read permissions should more than enough
foolsh is offline   Reply With Quote
Old May 7th, 2008   #5
rybaxs
Gee! These Aren't Roasted!
 
rybaxs's Avatar
 
Join Date: Jan 2008
Location: Philippines
Beans: 171
Talking Re: Forbidden/You don't have permission to access / on this server

who created this post? i greatly fully thank you,,! yeah! my boss will never kill me again.. when i set to chmod 666 Forbidden appear, then when i sudo chmod -R a=rx /var/www at the root. my virtual host works!..
rybaxs is offline   Reply With Quote
Old May 8th, 2008   #6
lordadi
A Carafe of Ubuntu
 
lordadi's Avatar
 
Join Date: Dec 2007
Location: CA
Beans: 91
Ubuntu 9.04 Jaunty Jackalope
Re: Forbidden/You don't have permission to access / on this server

Thank you So so sooooo much. This totally took care of my problems. YAY!!
lordadi is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:53 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry