-
Notifications
You must be signed in to change notification settings - Fork 9
Install this projekt on your server
Hier ist eine Anleitung um das Webinterface auf dem eigenen Server (Ubuntu Server 16.04/Debian 9 Stretch) zu installieren:
(vgl. https://symfony.com/doc/current/setup.html)
apt-get install php7.0 php7.0-mysql php7.0-xml php7.0-opcache php-apcu
apt-get install apache2 libapache2-mod-php7.0
a2enmod ssl
a2ensite default-ssl
a2enmod rewrite
Ordner ohne Index-Datei nicht anzeigen, überschreiben der Konfiguration durch .htaccess erlauben
vim /etc/apache2/apache2.conf
<Directory /var/www/html/vmailManage/>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Apache neu laden:
service apache2 reload
apt-get install unzip composer
mkdir -p /usr/local/bin
apt-get install curl
curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
chmod a+x /usr/local/bin/symfony
cd /var/www/html/
git clone https://github.com/Andreas-Bresch/vmailManage vmailManage
cd vmailManage/
composer install --no-interaction
chown -R www-data:www-data *
Bevor die Zugangsdaten eingegeben werden, kurz testen, ob die Regeln der .htaccess greifen (und nicht der Verzeichnisbaum angezeigt wird)
https://mysystems.tld/vmailManage/web/
vim app/config/parameters.yml
also in etwa so:
parameters:
database_host: 'localhost'
database_port: '3306'
database_name: 'vmail'
database_user: 'vmail'
database_password: '*****'
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
secret: ****
hier sollten die gleichen Parameter stehen, wie sie unter
/etc/amavis/conf.d/50-user
angegeben sind:
@lookup_sql_dsn = ( ['DBI:mysql:database=vmail;host=127.0.0.1;port=3306', 'vmail', 'vmaildbpass']
vim app/config/security.yml
users:
andy:
password: ***
roles: 'ROLE_ADMIN'
php bin/console cache:clear --no-warmup --env=prod
https://mysystems.tld/vmailManage/web/
Wenn Du Anmerkungen/Verbesserungsvorschläge hast, dann schreib mich an :D