diff --git a/docs/CHROOTED_DEBIAN_5.0.txt_beta b/docs/CHROOTED_DEBIAN_5.0.txt_beta index b5684073944821740ef469e2639a44b7c8553df3..350080308149804537ceee94c3cd3a3acb057a5e 100644 --- a/docs/CHROOTED_DEBIAN_5.0.txt_beta +++ b/docs/CHROOTED_DEBIAN_5.0.txt_beta @@ -26,8 +26,8 @@ BACKUP BACKUP BACKUP BACKUP BACKUP BACKUP /dev/lvm_foobar2/apachelogs_lv -> /var/www/html/var/log/apache2 (ext3) /dev/lvm_foobar3/hosting_lv -> /var/www/html/var/www/html (xfs) -mkdir -p /var/www/html/var/log/apache2 /var/www/html/var/www/html mount /dev/lvm_foobar1/chroot_lv /var/www/ +mkdir -p /var/www/html/var/log/apache2 /var/www/html/var/www/html mount /dev/lvm_foobar2/apachelogs_lv /var/www/html/var/log/apache2 mount /dev/lvm_foobar3/hosting_lv /var/www/html/var/www/html @@ -46,7 +46,7 @@ mount -a echo "@sshusers - chroot /var/www/html/">>/etc/security/limits.conf -cp -r /etc/{passwd,group,apt}>/var/www/html/etc/ +cp -r /etc/{passwd,group,apt} /var/www/html/etc/ chroot /var/www/html apt-get update chroot /var/www/html apt-get install fakeroot --force-yes -y @@ -90,10 +90,7 @@ ln -s /var/www/html/var/lock/apache2 /var/lock/apache2 ln -s /var/www/html/var/lib/apache2 /var/lib/apache2 ln -s /var/www/html/usr/lib/php5 /usr/lib/php5 -6. Start apache -/etc/init.d/apache2 restart - -7. # Install mini_sendmail for chroot +6. # Install mini_sendmail for chroot cd /tmp/ wget http://acme.com/software/mini_sendmail/mini_sendmail-1.3.6.tar.gz @@ -116,7 +113,7 @@ add to php.ini (/var/www/html/etc/php5/apache2/php.ini /var/www2/etc/php5/cli/ph sendmail_path = /usr/sbin/mini_sendmail -t -i -fhosting@alojamientotecnico.com -s127.0.0.1 # Test -apache2ctl graceful +apache2ctl restart chroot /var/www/html/ # php -i|grep --color sendmail