Come Rackspace – RSC crea virtual host su vps managed

come RSC crea host :


cd /etc/httpd/vhost.d/
ll
cat dominioesistente.estensionedominio.conf
ll
cp dominioesistente.estensionedominio.conf nuovodominio.estensionedominio.conf
vim nuovodominio.estensionedominio.conf <- QUI modifica i parametri con quelli nuovi mkdir -p /mnt/data/vhosts/NUOVODOMINIO.ESTENSIONE/httpdocs/ cd /mnt/data/vhosts/NUOVODOMINIO.ESTENSIONE/httpdocs/ ll vim index.php vim NUOVODOMINIO.ESTENSIONE.conf ll curl curlmyip.com netstat -plnt cd /mnt/data/vhosts ll cat /etc/passwd useradd -d /mnt/data/vhosts/NUOVODOMINIO.ESTENSIONE -s /sbin/nologin NUOVOUTENTE passwd NUOVOUTENTE_APPENACREATO ll chown NUOVOUTENTE_APPENACREATO:apache dominio.estensione -R ll cd dominio.estensione/ ll find . -type d | xargs chmod 775 find . -type f | xargs chmod 664 chmod g+s . httpd -t service httpd graceful curl curlmyip.com sevice iptable save service iptables save service iptables restart vim /etc/sysconfig/iptables service iptables restart curl curlmyip.com servie httpd restart service httpd start cd /etc/httpd/vhost.d/ ll mv DOMINIO.ESTENSIONE.conf DOMINIO.ESTENSIONE ll service httpd restart vim DOMINIO.ESTENSIONE mv DOMINIO.ESTENSIONE DOMINIO.ESTENSIONE.conf httpd -t service httpd restart mv DOMINIO.ESTENSIONE.conf terrediromagna.org service httpd restart vim DOMINIO.ESTENSIONE mkdir -p /mnt/data/vhosts/DOMINIO.ESTENSIONE/logs/ mv DOMINIO.ESTENSIONE DOMINIO.ESTENSIONE.conf httpd -t service httpd restart cd mysql cat /etc/passwd curl curlmyip.cpom curl curlmyip.com