2

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 ?

1
  • Apache needs to be able to access the files it serves. This is a common mistake made when doing the setup in root.
    – Mikhail
    Commented Nov 4, 2012 at 15:09

1 Answer 1

1

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
1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .