Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to configure apache server on openSUSE 12.2. I am doing as shown in the manual here http://en.opensuse.org/SDB:Linux_Apache_MySQL_PHP it works fine. When I try to access localhost/~myuser/website/html/index.html I am getting this message:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server. 

If you think this is a server error, please contact the webmaster.

Error 403

Any ideas how to fix this ?

share|improve this question
    
Apache needs to be able to access the files it serves. This is a common mistake made when doing the setup in root. –  Mikhail Nov 4 '12 at 15:09
add comment

1 Answer

up vote 0 down vote accepted

Change the owner of the files and folders to the owner of Apache. It should get resolved. Command will be like:

sudo chown apache-user:apache-group ~myuser/website/html/ -R

Also change the permission of the folder to 755

sudo chmod 755 ~myuser/website/html/ -R
share|improve this answer
    
On my latest install of OpenSUSE 12.3 the default user:group were wwwrun:www making the command: sudo chown wwwrun:www /srv/www/htdocs -R –  Alan B. Dee Jun 12 '13 at 18:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.