Skip to content

Commit 1bf430c

Browse files
author
dxr
committed
Update CHROOTED_DEBIAN_5.0.txt_beta
1 parent c8a1a63 commit 1bf430c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/CHROOTED_DEBIAN_5.0.txt_beta

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ chroot /var/www/html a2enmod mod_chroot
6969
chroot /var/www/html a2enmod suexec
7070
echo "ChrootDir /var/www/html" > /var/www/html/etc/apache2/conf.d/mod_chroot.conf
7171
sed -i -e 's#DocumentRoot /var/www/#DocumentRoot /var/www/html/#' /var/www/html/etc/apache2/sites-enabled/000-default
72-
echo "<? phpinfo(); system(\"rm -rf test; mkdir test\"); ?>">/var/www/html/var/www/html/index.php
72+
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
7373

7474
# Protect apache configuration. ONLY root can read it
7575
chown root:root /etc/apache2/ && chmod 700 /etc/apache2/
76-
76+
chmod 711 /var/www/html/etc/php5/
7777

7878
5. # Is good idea to add nagios alarm for check every simbolic link is correct.
7979
ln -s /var/www/html/etc/apache2 /etc/apache2
@@ -85,6 +85,8 @@ ln -s /var/www/html/usr/sbin/apache2 /usr/sbin/apache2
8585
ln -s /var/www/html/usr/lib/apache2 /usr/lib/apache2
8686
ln -s /var/www/html/usr/sbin/a2enmod /usr/sbin/a2enmod
8787
ln -s /var/www/html/usr/sbin/a2dismod /usr/sbin/a2dismod
88+
ln -s /var/www/html/usr/sbin/a2ensite /usr/sbin/a2ensite
89+
ln -s /var/www/html/usr/sbin/a2dissite /usr/sbin/a2dissite
8890
ln -s /var/www/html/var/log/apache2 /var/log/apache2
8991
ln -s /var/www/html/var/lock/apache2 /var/lock/apache2
9092
ln -s /var/www/html/var/lib/apache2 /var/lib/apache2

0 commit comments

Comments
 (0)