You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mount /dev/lvm_foobar2/apachelogs_lv /var/www/html/var/log/apache2
32
60
mount /dev/lvm_foobar3/hosting_lv /var/www/html/var/www/html
33
61
34
-
3. Clear apache and php instalation
62
+
63
+
3. Remove possible apache or php installations on real system
35
64
# We never wont install apache or php in non-chroot system, if we have installed, we only have do a backup of confgigurations, uninstall, and check every simbolic link
36
65
dpkg -l|egrep --color -i 'apache|php'
37
66
38
-
4. Prepair chroot enviroment
39
-
apt-get install debootstrap libpcre3 libaprutil1 libxml2 mime-support patch make gcc
sed -i -e 's#DocumentRoot /var/www/#DocumentRoot /var/www/html/#' /var/www/html/etc/apache2/sites-enabled/000-default
74
112
sed -i -e 's#x-httpd-php=php:/usr/bin/php-cgi#x-httpd-php=php:/usr/bin/php-cgi\nx-httpd-suphp=php:/usr/bin/php-cgi\nx-httpd-php=php:/usr/bin/php-cgi#' /var/www/html/etc/suphp/suphp.conf
113
+
sed -i -e 's#/var/run/apache2.pid#/var/run/apache2/apache2.pid#' /var/www/html/etc/apache2/envvars
114
+
sed -i -e 's/^"syntax on/syntax on/' /etc/vim/vimrc
115
+
sed -i -e 's/^"syntax on/syntax on/' /var/www/html/etc/vim/vimrc
75
116
76
117
# Protect apache configuration. ONLY root can read it
# We can use mini_sendmail for delivery emails directy in remote servers, but i prefer to control it in central mailserver for check spammers and limit it.
# Sould be good idea check /var/www/html/usr/lib/sendmail /var/www/html/usr/sbin/sendmail and /var/www/html/usr/sbin/mini_sendmail with nagios alarm ;)
133
182
134
-
8. Install ispconfig ........
135
183
184
+
8. Install ispconfig ........
136
185
186
+
chroot /var/www/html/
187
+
cd /tmp/
188
+
svn co svn://svn.ispconfig.org/ispconfig3 svn.ispconfig.org
0 commit comments