CMS/BookStack: Unterschied zwischen den Versionen

Aus Dokument
Zur Navigation springen Zur Suche springen
// via Wikitext Extension for VSCode
 
Zeile 42: Zeile 42:
</pre>
</pre>


===Ngings Einstellung===
===Nginx Einstellung===
<pre>
<pre>
sudo nano /etc/nginx/conf.d/bookstack.conf
sudo nano /etc/nginx/conf.d/bookstack.conf

Version vom 26. Januar 2026, 10:04 Uhr

Hinweis: Diese Inhalte wurden mit Unterstützung von Künstlicher Intelligenz erstellt und redaktionell überprüft (Transparenzhinweis gemäß Art. 50 EU AI Act).


Entwicklung Server

sudo apt-get install php-mysql


Mysql Datenbank Einrichten

sudo mysql
CREATE DATABASE bookstack CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'thorsten'@'localhost' IDENTIFIED BY 'DEIN_STARKES_PASSWORT';
GRANT ALL PRIVILEGES ON bookstack.* TO 'thorsten'@'localhost';
FLUSH PRIVILEGES;

BookStack herunterladen

sudo git clone https://source.bookstackapp.com/bookstack.git --branch release --single-branch bookstack
cd bookstack
sudo composer install --no-dev
sudo cp .env.example .env

Konfiguration von BookStack

sudo nano .env

Dateiberechtigungen setzen

sudo chmod 777 -R storage
sudo chmod 777 -R bootstrap/cache
sudo chmod 777 -R public/uploads
sudo chown -R www-data:www-data storage bootstrap/cache

Artisan Nutzen

php artisan key:generate --force --no-interaction
php artisan migrate --force --no-interaction

Nginx Einstellung

sudo nano /etc/nginx/conf.d/bookstack.conf

Geben Sie Folgendes in die Datei `/etc/nginx/conf.d/bookstack.conf` ein:



server {
  listen 80;
  listen [::]:80;

  server_name bookstack.localhost;

  root /var/www/bookstack/public;
  index index.php index.html;

  location / {
    try_files $uri $uri/ /index.php?$query_string;
  }
  
  location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/run/php/php8.4-fpm.sock;
  }
}


Hinweis: Diese Inhalte wurden mit Unterstützung von Künstlicher Intelligenz erstellt und redaktionell überprüft (Transparenzhinweis gemäß Art. 50 EU AI Act).