Forbidden Access woes...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Forbidden Access woes...

Post by dwfait »

Hi..i just installed Ubuntu, and i installed Apache via apt-get, and every time i go to a page in var/www/ it gives me:

Forbidden

You don't have permission to access /index.html on this server.
Apache/2.0.53 (Ubuntu) Server at http://www.endian.co.uk Port 80

However, i can access the html file at: http://www.endian.co.uk/apache2-default/

Please help, as i am very new to Linux and very confused.
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

Post by dwfait »

Nevermind, i have fixed it..while the folder was CHMOD'd to 777, the files created in there werent. How would i set it up so files created in that folder and all subfolders have CHMOD of 777?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

777 is a pretty dangerous permission setting... are you sure you want to use that?

Why not restrict it to the owner with full rights? You can set the owner to the web-server user.. then the web-server should always be able to get the pages, yet stay fairly secure otherwise..
theda
Forum Contributor
Posts: 332
Joined: Sat Feb 19, 2005 8:35 am
Location: USA

Post by theda »

Isn't the Cmod for what you're talking about 766? First number for owner, second for server, third for client? 7->write, execute, view. 6, write view, 5 view? Can't quite remember the chmod value meanings anymore.
Post Reply