SiteBar (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 84: | Zeile 84: | ||
=== HTTPS-Zugang einrichten === | === HTTPS-Zugang einrichten === | ||
==== Zertifikat erstellen ==== | |||
Siehe dazu [[SSL Zertifikat]] | |||
==== Apache-Konfiguration ==== | |||
<pre> | <pre> |
Version vom 28. Juli 2016, 16:40 Uhr
Voraussetzung
sudo apt-get install git
Installation
git clone https://github.com/brablc/sitebar.git sudo mv sitebar/ /var/www/ sudo chown -R www-data:www-data /var/www/sitebar/
Apache
cd /etc/apache2/conf-available/
sudo nano /etc/apache2/conf-available/sitebar.conf
Alias /sitebar "/var/www/sitebar/" <Directory "/var/www/sitebar"> Options +FollowSymLinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/sitebar SetEnv HTTP_HOME /var/www/sitebar </Directory>
sudo a2enconf sitebar sudo service apache2 restart
Datenbank erstellen
mysql -u root -p mysql> create database sitebar; mysql> create user 'sitebar'@'%' identified by '<password>'; mysql> create user 'sitebar'@'localhost' identified by '<password>'; mysql> grant all on sitebar.* to 'sitebar'@'%'; mysql> grant all on sitebar.* to 'sitebar'@'localhost'; mysql> flush privileges; mysql> exit;
sudo nano /var/www/sitebar/adm/config.inc.php
<?php $SITEBAR = array ( 'db' => array ( 'host' => 'localhost', 'username' => 'sitebar', 'password' => '<password>', 'name' => 'sitebar', ), 'baseurl' => null, 'login_as' => null, ); ?>
Konfiguration
http://<server ip>/sitebar/
HTTPS-Zugang einrichten
Zertifikat erstellen
Siehe dazu SSL Zertifikat
Apache-Konfiguration
cd /etc/apache2/sites-available/
sudo nano /etc/apache2/sites-available/sitebar.conf
<VirtualHost *:80> ServerName sitebar.kirner.or.at ServerAlias sitebar.kirner.or.at Redirect / https://sitebar.kirner.or.at </VirtualHost>
sudo nano /etc/apache2/sites-available/sitebar-ssl.conf
<VirtualHost *:443> ServerName sitebar.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/sitebar.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/sitebar ErrorLog ${APACHE_LOG_DIR}/sitebar.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/sitebar.kirner.or.at-access.log combined </VirtualHost>
Links
https://wiki.ubuntuusers.de/SiteBar/
Zurück zu Ubuntu