File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ chroot /var/www/html /etc/init.d/apache2 stop
6868chroot /var/www/html a2enmod mod_chroot
6969chroot /var/www/html a2enmod suexec
7070echo " ChrootDir /var/www/html" > /var/www/html/etc/apache2/conf.d/mod_chroot.conf
71- mkdir -p /var/www/html/var/www/html
7271sed -i -e ' s#DocumentRoot /var/www/#DocumentRoot /var/www/html/#' /var/www/html/etc/apache2/sites-enabled/000-default
7372echo " <? phpinfo(); system(\" rm -rf test; mkdir test\" ); ?>" > /var/www/html/var/www/html/index.php
7473
@@ -101,7 +100,7 @@ ln -s /var/www/html/usr/lib/php5 /usr/lib/php5
101100# ## Migration to other server ###
102101Really easy:
103102
104- Do step 1.
103+ Do step 1
105104
106105And after do a simple rsync:
107106
@@ -112,5 +111,5 @@ time rsync -a --progress root@host1:/var/www/ /var/www/
112111apt-get install debootstrap libpcre3 libaprutil1 libxml2 mime-support
113112
114113Do step 5
115-
114+ Do step 6
116115
You can’t perform that action at this time.
0 commit comments