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 ?


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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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