Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My site was in /usr/local/apache/htdocs.

Now i created new account in cpanel and move site to /home/account_name/public_html

Group and owner for all files are "account_name"

.htaccess and path configuration for a site are OK

I get error: "You don't have permission to access / on this server."

What i need to change to get it work?

Maybe some things in /usr/local/apache/conf/httpd.conf ?

share|improve this question

Your apache is running with process uid and gid preventing it from accessing /home/account_name/public_html.

You can change group for this folder to apache:

chgrp -R apache /home/account_name/public_html
chmod g+rx  /home/account_name/public_html

or you can give anyone rx permission on this folder:

chmod o+rx /home/account_name/public_html

share|improve this answer
your solution does not help – sbxmal May 18 '12 at 14:10
Problem was in permissions for folder "public_html" I changed it from 0750 to 0755 and all works! – sbxmal May 18 '12 at 14:19
I can be mistaken with apache username in Centos. – DukeLion May 18 '12 at 14:26

Your Answer


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.