SiteBar (Linux)
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
cd /etc/apache2/sites-available/
sudo nano /etc/apache2/sites-available/sitebar.conf
sudo nano /etc/apache2/sites-available/sitebar-ssl.conf
Links
https://wiki.ubuntuusers.de/SiteBar/
Zurück zu Ubuntu