Filed Under: General

Apache 403 Forbidden Linux – Solution

7 August 2009 No Comment

If you are moving or copying a site to another directory on your server then it might happen that you can no longer access your site.

A 403 error message will popup. How can that happen, you copied the exact same files?!

The reason is simple, once you copy the files they no longer have execute permission. To display your web files, a file requires execute permission!


Apache 403 forbidden fix:

chmod a+x would give all (user group and others) execute permission

Example:

If you have a directory like /here/abc/ then you got to run this query:

chmod -R a+x /here/abc/

I hope that solves your 403 forbidden problem!







Like our posts? Then subscribe via Mail:

Email:  

Similar Posts:

Socialize:

delicious stumbleupon

Leave your response!

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.com.