Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
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.