This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName dominio.cl | |
ServerAlias www.dominio.cl | |
DocumentRoot /home/ubuntu/public_html/dominio.cl/public | |
<Directory /home/ubuntu/public_html/dominio.cl/public/> | |
AllowOverride all | |
Require all granted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Estrucutura para crear usuarios, permisos y directorios para configurar apache y sitios web en Ubuntu | |
sudo usermod -a -G www-data ubuntu | |
cd $HOME | |
mkdir public_html | |
sudo chgrp www-data public_html/ | |
# Reemplazar dominio | |
sudo chmod 2750 /home/ubuntu/public_html/ | |
mkdir -p public_html/llipe.com/{public,log} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://gist.github.com/TonyMtz/d75101d9bdf764c890ef | |
# Had to make it the manual way because the automated way didn't work | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* | |
# go to /usr/local/include and delete any node and node_modules directory |
NewerOlder