Q. Why I am getting this error message? I am using Apache web server and my directory is located at /home/myname/public_html.
A. The permissions on your Web page are not correct. Login over ssh session and use chmod command to setup correct permission. Go to directory (for example public_html or /var/www/sitename.com/dir/) and type the following command
$ chmod 755 *.*
OR
$ chmod o+x ./
If you have more subdirectories use -R option:
$ chmod -R 755 *.*
If you have access to Apache configuration file check out for these tips to get rid of Apache 403 forbidden error.
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -


{ 13 comments… read them below or add one }
hi, how do you make them open to anyone for perpetuity. for example, everytime i add a folder i have to redo the permissions.
Thanks!
problem in the permistion
I get this error when trying to browse a symlink, and chmoding it had no effect.
Thanks for kind info.
try chmod -R on the destination of the symlink, its obvious that it wont work because if you chmod the symlink you just make it make accessible for more users but the destination will remain unchanged, however if you chmod the destination it should work ok. Think like making a symlink to your shadow file and trying to chmod your symlink to get permission to the shadow file, that wont work either. Syntax:
dear moderator, i see that my post has been changed in the process of posting, i did ‘try chmod -R <rights> <file>’ but the rights and file tags were stripped, would you be so kind to escape char them for me?
sincerely,
Jelmer
I’ve updated your original post.
This worked. On WS_FTP, it’s all but WRITE on GROUP and OTHER.
Thanks!
why am I forbidden to see my website?
run ps -ef | grep httpd
and check which user is running apache if you see user nobody then modify your httpd.conf
file check for User nobody and Group nobody, remove nobody and enter valid user name and restart apache.
thanxx……it worked !!!!!!!!!!
Why am I forbidden to enter URL?
Thanks a lot,it worked…