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/
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;
Konfiguration
http://<server ip>/sitebar/
<?php
$SITEBAR = array
(
'db' => array
(
'host' => 'localhost',
'username' => 'sitebar',
'password' => '<password>',
'name' => 'sitebar',
),
'baseurl' => null,
'login_as' => null,
);
?>
Links
https://wiki.ubuntuusers.de/SiteBar/
Zurück zu Ubuntu