Create directory if it does not exist
mkdir $HOME/public_html
cd
chmod o+r public_html/index.html
chmod 755 public_html/index.html
chmod 701 public_html/index.html
chmod 604 public_html/index.html
chmod o+x . public_html
chmod -R a+rX *
if folder already exists
cd public_html
chmod -R a+rX *
chmod o+x . public_html
===================
To set up a web site on your CS domain, do the following
1) Start up a terminal session
2) execute the following commands
chmod 711 $HOME
mkdir $HOME/public_html
chmod 711 $HOME/public_html
touch $HOME/public_html/index.html
chmod 644 $HOME/public_html/index.html
3) You can now edit your public_html and add the appropriate HTML
--- Whenever you create directories in your public_html, they need to have permission 711. For all JavaScript and HTML, they need to be 644
No comments:
Post a Comment