Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmo
ISPConfig 3
Commits
5706c1b7
Commit
5706c1b7
authored
15 years ago
by
dxr
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation on CHROOTED_DEBIAN_5.0.txt_beta
parent
e12a0607
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/CHROOTED_DEBIAN_5.0.txt_beta
+30
-16
30 additions, 16 deletions
docs/CHROOTED_DEBIAN_5.0.txt_beta
with
30 additions
and
16 deletions
docs/CHROOTED_DEBIAN_5.0.txt_beta
+
30
−
16
View file @
5706c1b7
...
...
@@ -65,7 +65,18 @@ chroot /var/www/html apt-get install apache2 apache2.2-common apache2-doc apache
chroot
/var/www/html /etc/init.d/apache2 stop
# Is good idea to add nagios alarm for check every simbolic link is correct.
chroot
/var/www/html a2enmod mod_chroot
chroot
/var/www/html a2enmod suexec
echo
"ChrootDir /var/www/html"
>
/var/www/html/etc/apache2/conf.d/mod_chroot.conf
mkdir
-p
/var/www/html/var/www/html
sed
-i
-e
's#DocumentRoot /var/www/#DocumentRoot /var/www/html/#'
/var/www/html/etc/apache2/sites-enabled/000-default
echo
"<? phpinfo(); system(
\"
rm -rf test; mkdir test
\"
); ?>"
>
/var/www/html/var/www/html/index.php
# Protect apache configuration. ONLY root can read it
chown
root:root /etc/apache2/
&&
chmod
700 /etc/apache2/
5.
# Is good idea to add nagios alarm for check every simbolic link is correct.
ln
-s
/var/www/html/etc/apache2 /etc/apache2
ln
-s
/var/www/html/etc/suphp /etc/suphp
ln
-s
/var/www/html/var/run/apache2 /var/run/apache2
...
...
@@ -80,23 +91,26 @@ 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
a2enmod mod_chroot
a2enmod suexec
echo
"ChrootDir /var/www/html"
>
/etc/apache2/conf.d/mod_chroot.conf
mkdir
-p
/var/www/html/var/www/html
sed
-i
-e
's#DocumentRoot /var/www/#DocumentRoot /var/www/html/#'
/etc/apache2/sites-enabled/000-default
echo
"<? phpinfo(); system(
\"
rm -rf test; mkdir test
\"
); ?>"
>
/var/www/html/var/www/html/index.php
6, Start apache
/etc/init.d/apache2 restart
echo
"fakeroot apt-get -qq update && fakeroot apt-get dist-upgrade"
>
/var/www/html/sbin/Update
chmod
+x /var/www/html/sbin/Update
printf
"echo
\"
[+] Updating Real System ...
\"\n
apt-get -qq update && apt-get dist-upgrade
\n
echo
\"
[+] Updating Chroot System ...
\"\n
chroot /var/www/html/ Update "
>
/sbin/Update
chmod
+x /sbin/Update
7. Install ispconfig ........
# Protect apache configuration. ONLY root can read it
chown
root:root /etc/apache2/
&&
chmod
700 /etc/apache2/
5, Start apache
/etc/init.d/apache2 restart
6. Install ispconfig ........
### Migration to other server ###
Really easy:
Do step 1.
And after
do
a simple rsync:
screen
time
rsync
-a
--progress
root@host1:/var/www/ /var/www/
# Install some apache's dependencies
apt-get
install
debootstrap libpcre3 libaprutil1 libxml2 mime-support
Do step 5
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment