ContaboVmd9593

Aus Info-Theke
Zur Navigation springen Zur Suche springen


Installation

apt-get install rsync sudo nginx mariadb-server tmux etckeeper \
   php5-fpm php5-mysql mariadb-client curl
visudo

Postfix + Roundcube + Vimbadmin

apt-get install nginx-full php-auth-sasl php-http-request php-mail \
   php-mail-mime php-mail-mimedecode php-net-dime php-net-smtp \
   php-net-socket php-net-url php-pear php-soap php5 php5-cli \
   php5-common php5-curl php5-fpm php5-gd php5-imap php-apc php5-intl \
   php5-mcrypt php5-mysql libawl-php php5-xmlrpc ca-certificates

Mode: internet mit smarthost
Relay host: mail.gmx.net

dpkg-reconfigure tzdata
$HN=$(hostname -f)
openssl req -new -newkey rsa:4096 -sha256 -days 1095 -nodes -x509 -keyout /etc/ssl/$HN.key  -out /etc/ssl/$HN.cer
chmod 600 /etc/ssl/$HN.key
cp /etc/ssl/$HN.cer /usr/local/share/ca-certificates/update-ca-certificates
PW=changme
mysql --defaults-file=/etc/mysql/debian.cnf -e "CREATE DATABASE vimbadmin; GRANT ALL ON vimbadmin.* TO 'vimbadmin'@'localhost' IDENTIFIED BY '$PW'; FLUSH PRIVILEGES;"
mysql --defaults-file=/etc/mysql/debian.cnf -e "CREATE DATABASE roundcube; GRANT ALL ON roundcube.* TO 'roundcube'@'localhost' IDENTIFIED BY '$PW'; FLUSH PRIVILEGES;"
cd /home/www
wget --content-disposition -O - http://sourceforge.net/projects/roundcubemail/files/latest/download | tar xfvz -
mv roundcubemail-* webmail

mysql --defaults-file=/etc/mysql/debian.cnf roundcube < /home/www/webmail/SQL/mysql.initial.sql

cd /tmp
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

composer create-project opensolutions/vimbadmin /home/vimbadmin
chown -R www-data: /home/vimbadmin/{public,var}
ln -s /home/vimbadmin/public/ /home/www/webmail/admin