SiteBar (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 52: | Zeile 52: | ||
mysql> flush privileges; | mysql> flush privileges; | ||
mysql> exit; | mysql> exit; | ||
</pre> | </pre> | ||
Zeile 80: | Zeile 74: | ||
?> | ?> | ||
</pre> | </pre> | ||
== Konfiguration == | |||
<pre> | |||
http://<server ip>/sitebar/ | |||
</pre> | |||
== Links == | == Links == |
Version vom 28. Juli 2016, 16:23 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/
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/
Links
https://wiki.ubuntuusers.de/SiteBar/
Zurück zu Ubuntu