Commit c8a1a63d authored by dxr's avatar dxr
Browse files

Update CHROOTED_DEBIAN_5.0.txt_beta

parent 88702a79
...@@ -26,8 +26,8 @@ BACKUP BACKUP BACKUP BACKUP BACKUP BACKUP ...@@ -26,8 +26,8 @@ BACKUP BACKUP BACKUP BACKUP BACKUP BACKUP
/dev/lvm_foobar2/apachelogs_lv -> /var/www/html/var/log/apache2 (ext3) /dev/lvm_foobar2/apachelogs_lv -> /var/www/html/var/log/apache2 (ext3)
/dev/lvm_foobar3/hosting_lv -> /var/www/html/var/www/html (xfs) /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/ 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_foobar2/apachelogs_lv /var/www/html/var/log/apache2
mount /dev/lvm_foobar3/hosting_lv /var/www/html/var/www/html mount /dev/lvm_foobar3/hosting_lv /var/www/html/var/www/html
...@@ -46,7 +46,7 @@ mount -a ...@@ -46,7 +46,7 @@ mount -a
echo "@sshusers - chroot /var/www/html/">>/etc/security/limits.conf 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 update
chroot /var/www/html apt-get install fakeroot --force-yes -y 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 ...@@ -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/var/lib/apache2 /var/lib/apache2
ln -s /var/www/html/usr/lib/php5 /usr/lib/php5 ln -s /var/www/html/usr/lib/php5 /usr/lib/php5
6. Start apache 6. # Install mini_sendmail for chroot
/etc/init.d/apache2 restart
7. # Install mini_sendmail for chroot
cd /tmp/ cd /tmp/
wget http://acme.com/software/mini_sendmail/mini_sendmail-1.3.6.tar.gz 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 ...@@ -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 sendmail_path = /usr/sbin/mini_sendmail -t -i -fhosting@alojamientotecnico.com -s127.0.0.1
# Test # Test
apache2ctl graceful apache2ctl restart
chroot /var/www/html/ chroot /var/www/html/
# php -i|grep --color sendmail # php -i|grep --color sendmail
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment