Fixed typos in Debian-related documents.
| | |
| | | Installation |
| | | ------------- |
| | | |
| | | ----------- |
| | | |
| | | # It is recommended to use a clean (fresh) Debian lenny install where you just selected "Standard System" as the package selection during |
| | | # setup. Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as texteditor, but you ofcourse |
| | | # It is recommended to use a clean (fresh) Debian Lenny install where you just selected "Standard System" at the package selection during |
| | | # setup (tasksel). Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as text editor, but |
| | | # you can use whatever you prefer. You should be root for doing all of this. |
| | | |
| | | |
| | |
| | | # if not, then we assign a hostname (for example ispconfig): |
| | | |
| | | echo ispconfig.example.com > /etc/hostname |
| | | /etc/init.d/hostname.sh |
| | | |
| | | vi /etc/hosts |
| | | |
| | |
| | | |
| | | /etc/init.d/hostname.sh |
| | | |
| | | # enable the Debian volaitile repository to get a newer clamav version |
| | | # enable the Debian Volatile repository to get an updated ClamAV version |
| | | |
| | | echo "deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free" >> /etc/apt/sources.list |
| | | echo "deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free" >> /etc/apt/sources.list.d/volatile.list |
| | | apt-get update |
| | | |
| | | |
| | | # Some optional choices |
| | | |
| | | opt0.1) Optionally install SSH-server to get remote shell |
| | | |
| | | apt-get install ssh openssh-server |
| | | apt-get install openssh-server |
| | | |
| | | opt0.2) Optionally if you are not running in virtual machine you can set server clocksync via NTP. Virtual quests get this from the host. |
| | | opt0.2) Optionally, if you are not running inside a virtual machine, you can set server clocksync via NTP. Virtual guests get this from the host. |
| | | |
| | | apt-get install ntp ntpdate |
| | | apt-get -y install ntp ntpdate |
| | | |
| | | opt0.3) Optionally if you want vi editor improvement |
| | | |
| | |
| | | |
| | | /etc/init.d/mysql restart |
| | | |
| | | 2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| | | 2) Install Amavisd-new, Spamassassin and ClamAV (1 line!): |
| | | |
| | | apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl sudo |
| | | |
| | |
| | | /etc/init.d/courier-pop-ssl restart |
| | | |
| | | |
| | | 3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | 3) Install Apache, PHP5, PhpMyAdmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | |
| | | apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby |
| | | |
| | | |
| | | # When phpMyAdmin is asking weather to configure itself automatically, select "Apache2" |
| | | # When phpMyAdmin is asking wether to configure itself automatically, select "Apache2" |
| | | |
| | | # Then run the following to enable the Apache modules suexec, rewrite and ssl: |
| | | |
| | | a2enmod suexec rewrite ssl actions include ruby |
| | | |
| | | # If you want to use webdav then run the following to enable the Apache webdav modules: |
| | | # If you want to use WebDAV then run the following to enable the Apache webdav modules: |
| | | |
| | | a2enmod dav_fs dav auth_digest |
| | | |
| | | # restart apache before continuing |
| | | # restart Apache before continuing |
| | | |
| | | /etc/init.d/apache2 restart |
| | | |
| | |
| | | |
| | | apt-get -y install pure-ftpd-common pure-ftpd-mysql quota quotatool |
| | | |
| | | # Enable TLS in pureftpd |
| | | # Optional: Enable TLS in pureftpd |
| | | echo 1 > /etc/pure-ftpd/conf/TLS |
| | | mkdir -p /etc/ssl/private/ |
| | | openssl req -x509 -nodes -newkey rsa:1024 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem |
| | |
| | | quotaon -avug |
| | | |
| | | |
| | | 5) Install mydns |
| | | 5) Install MyDNS |
| | | |
| | | apt-get install g++ libc6 gcc gawk make texinfo libmysqlclient15-dev |
| | | |
| | |
| | | |
| | | 6) Install vlogger and webalizer |
| | | |
| | | apt-get install vlogger webalizer |
| | | apt-get -y install vlogger webalizer |
| | | |
| | | |
| | | 7) Install Jailkit (optional, only needed if you want to use chrroting for SSH users) |
| | | 7) Install Jailkit (optional, only needed if you want to use chrooting for SSH users) |
| | | |
| | | apt-get install build-essential autoconf automake1.9 libtool flex bison debhelper |
| | | apt-get -y install build-essential autoconf automake1.9 libtool flex bison debhelper |
| | | cd /tmp |
| | | wget http://olivier.sessink.nl/jailkit/jailkit-2.11.tar.gz |
| | | tar xvfz jailkit-2.11.tar.gz |
| | |
| | | 8) Install fail2ban (optional but recomended, because the monitor tries to show the log) |
| | | More info at: http://www.howtoforge.com/fail2ban_debian_etch |
| | | |
| | | apt-get install fail2ban |
| | | apt-get -y install fail2ban |
| | | |
| | | 9) Install ISPConfig 3 |
| | | |
| | |
| | | Installation |
| | | ----------- |
| | | ------------- |
| | | |
| | | # It is recommended to use a clean (fresh) Debian lenny install where you just selected "Standard System" as the package selection during |
| | | # setup. Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as texteditor, but you ofcourse |
| | | # It is recommended to use a clean (fresh) Debian Lenny install where you just selected "Standard System" at the package selection during |
| | | # setup (tasksel). Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as text editor, but |
| | | # you can use whatever you prefer. You should be root for doing all of this. |
| | | |
| | | |
| | |
| | | |
| | | /etc/init.d/hostname.sh |
| | | |
| | | # enable the Debian volaitile repository to get a newer clamav version |
| | | # enable the Debian Volatile repository to get an updated ClamAV version |
| | | |
| | | echo "deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free" >> /etc/apt/sources.list |
| | | echo "deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free" >> /etc/apt/sources.list.d/volatile.list |
| | | apt-get update |
| | | |
| | | # Some optional choices |
| | | |
| | | opt0.1) Optionally install SSH-server to get remote shell |
| | | |
| | | apt-get install ssh openssh-server |
| | | apt-get install openssh-server |
| | | |
| | | opt0.2) Optionally if you are not running in virtual machine you can set server clocksync via NTP. Virtual quests get this from the host. |
| | | opt0.2) Optionally, if you are not running inside a virtual machine, you can set server clocksync via NTP. Virtual guests get this from the host. |
| | | |
| | | apt-get -y install ntp ntpdate |
| | | |
| | |
| | | |
| | | /etc/init.d/mysql restart |
| | | |
| | | 2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| | | 2) Install Amavisd-new, Spamassassin and ClamAV (1 line!): |
| | | |
| | | apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl |
| | | |
| | | |
| | | 3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | 3) Install Apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | |
| | | apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby |
| | | |
| | | |
| | | # When phpMyAdmin is asking weather to configure itself automatically, select "Apache2" |
| | | # When phpMyAdmin is asking wether to configure itself automatically, select "Apache2" |
| | | |
| | | # Then run the following to enable the Apache modules suexec, rewrite and ssl: |
| | | |
| | | a2enmod suexec rewrite ssl actions include ruby |
| | | |
| | | # If you want webdav then run the following to enable the Apache webdav modules: |
| | | # If you want to use WebDAV then run the following to enable the Apache webdav modules: |
| | | |
| | | a2enmod dav_fs a2enmod dav auth_digest |
| | | a2enmod dav_fs dav auth_digest |
| | | |
| | | # restart apache before continuing |
| | | # restart Apache before continuing |
| | | |
| | | /etc/init.d/apache2 restart |
| | | |
| | |
| | | apt-get -y install vlogger webalizer |
| | | |
| | | |
| | | 7) Install Jailkit (optional, only needed if you want to use chrroting for SSH users) |
| | | 7) Install Jailkit (optional, only needed if you want to use chrooting for SSH users) |
| | | |
| | | apt-get -y install build-essential autoconf automake1.9 libtool flex bison debhelper |
| | | cd /tmp |
| | |
| | | Installation |
| | | ----------- |
| | | ------------- |
| | | |
| | | # It is recommended to use a clean (fresh) Debian Squeeze install where you just selected "Standard System" as the package selection during |
| | | # setup. Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as texteditor, but you ofcourse |
| | | # It is recommended to use a clean (fresh) Debian Squeeze install where you just selected "Standard System" at the package selection during |
| | | # setup (tasksel). Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as text editor, but |
| | | # you can use whatever you prefer. You should be root for doing all of this. |
| | | |
| | | |
| | |
| | | |
| | | opt0.1) Optionally install SSH-server to get remote shell |
| | | |
| | | apt-get install ssh openssh-server |
| | | apt-get install openssh-server |
| | | |
| | | opt0.2) Optionally if you are not running in virtual machine you can set server clocksync via NTP. Virtual quests get this from the host. |
| | | opt0.2) Optionally, if you are not running inside a virtual machine, you can set server clocksync via NTP. Virtual guests get this from the host. |
| | | |
| | | apt-get install ntp ntpdate |
| | | apt-get -y install ntp ntpdate |
| | | |
| | | opt0.3) Optionally if you want vi editor improvement |
| | | |
| | | apt-get install vim-nox |
| | | |
| | | apt-get -y install vim-nox |
| | | |
| | | |
| | | # Next is the real deal |
| | | |
| | | 1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin, rkhunter, binutils with the following command line (on one line!): |
| | | |
| | | apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-pop courier-pop-ssl courier-authlib-mysql courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 rkhunter binutils sudo |
| | | |
| | | apt-get -y install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-pop courier-pop-ssl courier-authlib-mysql courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl courier-maildrop getmail4 rkhunter binutils sudo |
| | | |
| | | # Answer the questions from the package manager as follows. |
| | | |
| | |
| | | |
| | | /etc/init.d/mysql restart |
| | | |
| | | 2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| | | 2) Install Amavisd-new, Spamassassin and ClamAV (1 line!): |
| | | |
| | | apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl |
| | | apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl |
| | | #this is necessary? libnet-ldap-perl |
| | | |
| | | # During the installation, the SSL certificates for IMAP-SSL and POP3-SSL are created with the hostname localhost. To change this to the correct hostname (server1.example.com in this tutorial), delete the certificates... |
| | |
| | | /etc/init.d/courier-pop-ssl restart |
| | | |
| | | |
| | | 3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | 3) Install Apache, PHP5, PhpMyAdmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | |
| | | apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby |
| | | apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby |
| | | |
| | | #this package is actual missed on official squeeze repository: php5-imagick |
| | | |
| | | # When phpMyAdmin is asking weather to configure itself automatically, select "Apache2" |
| | | # When phpMyAdmin is asking wether to configure itself automatically, select "Apache2" |
| | | |
| | | # Then run the following to enable the Apache modules suexec, rewrite and ssl: |
| | | |
| | | a2enmod suexec rewrite ssl actions include ruby |
| | | |
| | | # If you want webdav then run the following to enable the Apache webdav modules: |
| | | # If you want to use WebDAV then run the following to enable the Apache webdav modules: |
| | | |
| | | a2enmod dav_fs a2enmod dav auth_digest |
| | | a2enmod dav_fs dav auth_digest |
| | | |
| | | # restart apache before continuing |
| | | # restart Apache before continuing |
| | | |
| | | /etc/init.d/apache2 restart |
| | | |
| | | |
| | | 4) Install pure-ftpd and quota |
| | | |
| | | apt-get install pure-ftpd-common pure-ftpd-mysql quota quotatool |
| | | apt-get -y install pure-ftpd-common pure-ftpd-mysql quota quotatool |
| | | |
| | | # Some additional settings for pureftpd |
| | | # Optional: Some additional settings for pureftpd |
| | | |
| | | echo "yes" > /etc/pure-ftpd/conf/DisplayDotFiles |
| | | |
| | |
| | | quotaon -avug |
| | | |
| | | |
| | | 5) Install mydns |
| | | 5) Install MyDNS |
| | | |
| | | apt-get install g++ libc6 gcc gawk make texinfo libmysqlclient-dev |
| | | |
| | |
| | | |
| | | 6) Install vlogger and webalizer |
| | | |
| | | apt-get install vlogger webalizer |
| | | apt-get -y install vlogger webalizer |
| | | |
| | | |
| | | 7) Install Jailkit (optional, only needed if you want to use chrroting for SSH users) |
| | | 7) Install Jailkit (optional, only needed if you want to use chrooting for SSH users) |
| | | |
| | | apt-get install build-essential autoconf automake1.9 libtool flex bison debhelper |
| | | apt-get -y install build-essential autoconf automake1.9 libtool flex bison debhelper |
| | | cd /tmp |
| | | wget http://olivier.sessink.nl/jailkit/jailkit-2.11.tar.gz |
| | | tar xvfz jailkit-2.11.tar.gz |
| | |
| | | 8) Install fail2ban (optional but recomended, because the monitor tries to show the log) |
| | | More info at: http://www.howtoforge.com/fail2ban_debian_etch |
| | | |
| | | apt-get install fail2ban |
| | | apt-get -y install fail2ban |
| | | |
| | | 9) Install ISPConfig 3 |
| | | |
| | |
| | | Installation |
| | | ----------- |
| | | ------------- |
| | | |
| | | # It is recommended to use a clean (fresh) Debian squeeze 6.0 install where you just selected "Standard System" as the package selection during |
| | | # setup. Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as texteditor, but you ofcourse |
| | | # It is recommended to use a clean (fresh) Debian Squeeze 6.0 install where you just selected "Standard System" at the package selection during |
| | | # setup (tasksel). Then follow the steps below to setup your server with ISPConfig 3. In this guide "vi" is used as text editor, but |
| | | # you can use whatever you prefer. You should be root for doing all of this. |
| | | |
| | | |
| | |
| | | |
| | | /etc/init.d/hostname.sh |
| | | |
| | | # enable the Debian volaitile repository to get a newer clamav version |
| | | # The volatile repository for debian squueze was not available yet at the time this howto was written. |
| | | # echo "deb http://volatile.debian.org/debian-volatile squeeze/volatile main contrib non-free" >> /etc/apt/sources.list |
| | | # enable the Debian Volatile repository to get an updated ClamAV version |
| | | # The Volatile repository for Debian Squeeze was not available yet at the time this howto was written. |
| | | # echo "deb http://volatile.debian.org/debian-volatile squeeze/volatile main contrib non-free" >> /etc/apt/sources.list.d/volatile.list |
| | | # apt-get update |
| | | |
| | | # Some optional choices |
| | | |
| | | opt0.1) Optionally install SSH-server to get remote shell |
| | | |
| | | apt-get install ssh openssh-server |
| | | apt-get install openssh-server |
| | | |
| | | opt0.2) Optionally if you are not running in virtual machine you can set server clocksync via NTP. Virtual quests get this from the host. |
| | | opt0.2) Optionally, if you are not running inside a virtual machine, you can set server clocksync via NTP. Virtual guests get this from the host. |
| | | |
| | | apt-get -y install ntp ntpdate |
| | | |
| | |
| | | |
| | | /etc/init.d/mysql restart |
| | | |
| | | 2) Install Amavisd-new, Spamassassin and Clamav (1 line!): |
| | | 2) Install Amavisd-new, Spamassassin and ClamAV (1 line!): |
| | | |
| | | apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl |
| | | |
| | | |
| | | 3) Install apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | 3) Install Apache, PHP5, phpmyadmin, better fastCGI, suexec, Pear and mcrypt (1 line!): |
| | | |
| | | apt-get -y install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt imagemagick libapache2-mod-suphp libopenssl-ruby libapache2-mod-ruby |
| | | |
| | | |
| | | # When phpMyAdmin is asking weather to configure itself automatically, select "Apache2" |
| | | # When phpMyAdmin is asking wether to configure itself automatically, select "Apache2" |
| | | |
| | | # Then run the following to enable the Apache modules suexec, rewrite and ssl: |
| | | |
| | | a2enmod suexec rewrite ssl actions include ruby |
| | | |
| | | # restart apache before continuing |
| | | # restart Apache before continuing |
| | | |
| | | /etc/init.d/apache2 restart |
| | | |
| | |
| | | apt-get -y install vlogger webalizer |
| | | |
| | | |
| | | 7) Install Jailkit (optional, only needed if you want to use chrroting for SSH users) |
| | | 7) Install Jailkit (optional, only needed if you want to use chrooting for SSH users) |
| | | |
| | | apt-get -y install build-essential autoconf automake1.9 libtool flex bison debhelper |
| | | cd /tmp |
| | |
| | | |
| | | ----------------------------------------------------------------------------------------------------------- |
| | | |
| | | Ispc log files rotate, for now manual add but to add in ispc installer: |
| | | Ispc log files rotation, for now manual add but to add in ispc installer: |
| | | |
| | | /etc/logrotate.d/logispc3 |
| | | |
| | |
| | | |
| | | # Installing PowerDNS on Debian Linux |
| | | # Installing PowerDNS on Debian |
| | | ---------------------------------------------------------------------------- |
| | | |
| | | apt-get install pdns-server pdns-backend-mysql |
| | |
| | | |
| | | |
| | | #this information could also be in two sections in there, and if most of it looks |
| | | #like to be on place allreydy, most important change is "AddDefaultCharset off" |
| | | #like to be on place already, most important change is "AddDefaultCharset off" |
| | | |
| | | # After modification, restart Apache |
| | | # After modification, restart Apache service |
| | | |
| | | /etc/init.d/apache2 restart |
| | | |
| | |
| | | # Follow the steps 1 - 8 of the INSTALL_DEBIAN_5.0 Guide, then proceed |
| | | # with the steps below. |
| | | # |
| | | # This guide is experimental as there are a few cahnges nescessary in |
| | | # ispconfig to get it workin. These changes will be part of ISPConfig 3.0.2 |
| | | # This guide is experimental as there are a few changes necessary in |
| | | # ispconfig to get it working. These changes will be part of ISPConfig 3.0.2 |
| | | |
| | | # Install packages |
| | | |
| | | apt-get install debootstrap libapache2-mod-chroot |
| | | |
| | | # Create the chroot enviroment |
| | | # Create the chroot environment |
| | | |
| | | debootstrap lenny /var/www/ ftp://ftp.fr.debian.org/debian/ |
| | | |
| | | # Add mountpoints for the chroot env into the fstab file. |
| | | # Add mountpoints for the chroot env into the fstab file |
| | | |
| | | echo "/proc /var/www/proc proc defaults 0 0">>/etc/fstab |
| | | echo "devpts /var/www/dev/pts devpts defaults 0 0">>/etc/fstab |
| | | |
| | | # mount the filesystems |
| | | # mount all the filesystems |
| | | |
| | | mount -a |
| | | |
| | | # add a default chroot dir for all users of the sshusers group. |
| | | # add a default chroot dir for all users of the sshusers group |
| | | |
| | | echo "@sshusers - chroot /var/www/">>/etc/security/limits.conf |
| | | |
| | | # copy passwd and group files to the chroot env. |
| | | # copy passwd and group files to the chroot env |
| | | |
| | | cp -rf /etc/apt /etc/passwd /etc/group /var/www/etc/ # Cleaning unecesary users and groups |
| | | cp -rf /etc/apt /etc/passwd /etc/group /var/www/etc/ # Cleaning unnecessary users and groups |
| | | |
| | | # Create symlinks. |
| | | # Create symlinks |
| | | |
| | | cd /var/www/var/ |
| | | rm -rf /var/www/var/www |
| | |
| | | |
| | | dpkg-reconfigure locales |
| | | |
| | | # run a dist upgarde. |
| | | # run a dist-upgrade |
| | | |
| | | fakeroot apt-get dist-upgrade |
| | | |
| | | # Install apache and php in the chroot enviroment |
| | | # Install Apache and PHP in the chroot environment |
| | | |
| | | apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libapache2-mod-suphp libopenssl-ruby |
| | | /etc/init.d/apache2 stop |
| | |
| | | |
| | | exit |
| | | |
| | | # Moving the apache configuration is not nescessary, as apache reads |
| | | # Moving the apache configuration is not necessary, as Apache reads |
| | | # the config files before it moves into the chroot |
| | | # rm -rf /var/www/etc/apache2 |
| | | # mv -f /etc/apache2 /var/www/etc/ |
| | |
| | | ln -s /var/www/usr/local/ispconfig/interface /usr/local/ispconfig/interface |
| | | chroot /var/www adduser www-data ispconfig |
| | | |
| | | # Create a link for the mysql socket. |
| | | # Create a link for the MySQL socket |
| | | |
| | | ln /var/run/mysqld/mysqld.sock /var/www/var/run/mysqld/mysqld.sock |
| | | |
| | | # As an alternative to making a hardlink to the mysql socket, |
| | | # change the my.cnf file in the chroot to use tcp sockets. |
| | | # This is more secure but a bit slower then using the mysqld.sock file. |
| | | # As an alternative to making a hardlink to the MySQL socket, |
| | | # change the my.cnf file in the chroot to use TCP sockets. |
| | | # This is more secure but a bit slower than using the mysqld.sock file. |
| | | |
| | | # Restart apache |
| | | # Restart Apache |
| | | |
| | | /etc/init.d/apache2 restart |
| | | |