public_html and private_html defaults not executable

sde

Verified User
Joined
Sep 11, 2004
Messages
214
Location
Temecula, CA
when i create a new domain, the public_html and private_html directories are not executable ( by everyone ) by default.

how can i fix this?
________
vaporizer
 
Last edited:
sde said:
when i create a new domain, the public_html and private_html directories are not executable ( by everyone ) by default.

how can i fix this?

For security reasons, it should be this way. You do not want other users on the same server accessing that directory. It sounds like you have another problem that you think changing this might fix. What is that other problem?
 
well i can understand it not being 'readable' , but when the public_html directory is not executable, the web sites can not be seen.

error 403

i chmod the public_html directory to 711 and then the sites can be seen.
________
TC305
 
Last edited:
public_html should be chmodded 750 as well as belong to user:apache

755 if Frontpage extensions are installed
 
If you want scripts to be executable in the public_html they should be owned by the account user and in their group.
Otherwise suexec will block them.

Setting permissions to 755 will do nicely too.

If you wish to do this automatically when creating a new domain, use the following lines in a "domain_create_post.sh" script

##
# change owner and permissions for public_html to allow CGIs to run
##
WEB_PATH=/home/${username}/domains/${domain}/public_html
chown ${username}:${username} $WEB_PATH
chmod 755 $WEB_PATH
 
Last edited:
it is possible that i may have moved files and chown -R owner.owner.

i just noticed on other domains, that they are: owner.apache

when apache is the group, 750 works fine. it was probably my fault.

thanks for pointing me in the right direction.
________
Suzuki GT750
 
Last edited:
Back
Top