This shows you the differences between two versions of the page.
| — |
web_para_el_usuario [2009/03/14 10:33] (current) xiam created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <code bash> | ||
| + | $ sudo -s -H | ||
| + | # cd /var/www | ||
| + | # mkdir -p usuario/sitio.com/htdocs | ||
| + | # echo "test" > usuario/sitio.com/htdocs/index.php | ||
| + | # chown -R usuario:usuario usuario | ||
| + | # chmod -R 750 usuario | ||
| + | # gpasswd -a www-data usuario | ||
| + | # su usuario | ||
| + | $ cd ~ | ||
| + | $ ln -s /var/www/usuario www | ||
| + | </code> | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | $ sudo -s -H | ||
| + | # cd /etc/bind | ||
| + | # vi named.conf.local | ||
| + | # cd zones | ||
| + | # vi db.sitio.tld | ||
| + | # /etc/init.d/bind9 restart | ||
| + | </code> | ||
| + | |||
| + | <code bash> | ||
| + | $ sudo -s -H | ||
| + | # cd /etc/apache2/sites-available | ||
| + | # vi sitio | ||
| + | # cd ../sites-enabled | ||
| + | # ln -s ../sites-available/sitio . | ||
| + | # /etc/init.d/apache2 restart | ||
| + | </code> | ||