Ceci est une ancienne révision du document !
# Parti d'un template Debian 8 préinstallé sur un disque de 8 giga editor /etc/hosts /etc/hostname /etc/network/interfaces /etc/resolv.conf ifup eth0 ping 185.61.116.254 ping 8.8.8.8 ping google.fr passwd root reboot hostname --fqdn apt-get update apt-get install openssh-server deluser temp editor ~root/.ssh/authorized_keys editor ~/.bashrc passwd -dl root apt-get autoremove --purge rpcbind nfs-common apt-get install sudo arping ethtool fail2ban iftop iperf lldpd molly-guard nmap ntp powertop procps rdiff-backup rsync screen sshpass strace sysstat tcpdump vim w3m unzip apt-get install apache2 libapache2-mod-php5 mysql-server phpmyadmin munin munin-node pdns-recursor dokuwiki rm /etc/munin/plugins/ntp_kernel_* rm /etc/munin/plugins/nfs* service munin-node reload
editor /etc/apache2/sites-available/000-default.conf editor /etc/apache2/sites-available/default-ssl.conf editor /etc/apache2/sites-available/redirect.conf editor /etc/apache2/sites-available/www.conf editor /etc/apache2/conf-available/dokuwiki.conf editor /etc/apache2/conf-available/phpmyadmin.conf editor /etc/apache2/conf-available/munin.conf editor /etc/apache2/conf-available/security.conf a2ensite default-ssl a2ensite redirect a2ensite www a2disconf dokuwiki a2disconf munin a2disconf phpmyadmin a2disconf serve-cgi-bin a2enmod rewrite a2enmod ssl htpasswd -Bc /etc/apache2/priv.htpasswd admin chgrp www-data /etc/apache2/priv.htpasswd chmod 640 /etc/apache2/priv.htpasswd service apache2 restart mkdir /var/www/priv editor /var/www/html/index.html editor /var/www/priv/index.html editor /usr/local/bin/tailapache chmod 755 /usr/local/bin/tailapache editor /etc/dokuwiki/dokuwiki.php rm /etc/dokuwiki/local.php chown www-data /var/lib/dokuwiki/lib/plugins/
chown -R root:www-data /var/www/priv/gestion/
cd /var/www wget https://getcomposer.org/composer.phar php composer.phar create-project --prefer-dist cakephp/app chd_gestion'' cd chd_gestion vim config/app.php # Config BDD
A voir, mais putain c'est un coup à gravement pourrir tout le serveur :'(
vim /etc/mailname dpkg-reconfigure exim4-config # Listen 25 : 127.0.0.1, ::1 # Split config : oui update-exim4.conf apt-get install sympa a2disconf sympa editor /etc/apache2/sites-available/www.conf editor /etc/apache2/conf-available/sympa.conf editor /etc/sympa/wwsympa.conf # Penser notamment a passer use_fast_cgi à 1 service apache2 reload editor /etc/sympa/sympa.conf editor /etc/aliases service sympa restart #editor /etc/exim4/conf.d/main/00_exim4-my-config cp -a /etc/exim4/conf.d/router/{400_exim4-config_system_aliases,450_local-config_sympa-aliases} editor /etc/exim4/conf.d/router/450_local-config_sympa-aliases cp -a /etc/exim4/conf.d/router/{450_local-config_sympa-aliases,440_local-config_sympa-global-aliases} editor /etc/exim4/conf.d/router/440_local-config_sympa-global-aliases update-exim4.conf service exim4 reload www-browser http://chd.sx/sympa