BookStack is an open-source platform for creating and managing documentation. It allows users to organize and share information in a simple and intuitive way.
Features
Simple and easy-to-use interface
Collaboration and permission controls
Versioning and revision history
Customizable branding and appearance
Integrations with external services
Getting Started
Download and install BookStack on your server or hosting platform.
Create an admin account and set up your organization or personal documentation space.
Start creating and organizing pages and books.
Invite collaborators and set permissions as needed.
Customize the appearance and branding of your BookStack instance.
BookStack can be used for creating and managing internal documentation for a company, such as policies, procedures, and guidelines. It can also be used for creating and sharing knowledge base for a product or service, or for creating and managing a personal documentation space.
Installation
#!/bin/bashMP_ROOT_MDB=12345678MP_MARIADB=bookstackurlbookstack=https://wiki.papinutto.localMDB_Database=bookstackMDB_USER=bookstackfqdn=wiki.papinutto.local######################################### Tรฉlรฉchargement de mariadb nginx gir et composer #########################################
cd~/sudo apt install lynx mariadb-server-10.5 mariadb-client-10.5 nginx git php7.4-fpm php7.4-curl php7.4-mbstring php7.4-ldap php7.4-xml php7.4-zip php7.4-mysql php7.4-gd composer -y
### Paramรฉtrage des services pour dรฉmarrer automatiquementsudosystemctlenablenginxsudosystemctlenablemariadbsudosystemctlenablephp7.4-fpm### Dรฉmarrage des servicessudosystemctlstartnginxsudosystemctlstartmariadbsudosystemctlstartphp7.4-fpm######################################### Configuration de la basse SQL MariaDB #########################################
### Sรฉcurisation de Mariadbsudomysql_secure_installation<<EOF${MP_ROOT_MDB}YY${MP_ROOT_MDB}${MP_ROOT_MDB}YYYYEOF### Crรฉation de la basse Mariadbsudomysql-uroot--execute="CREATE DATABASE $MDB_Database;"sudo mysql -u root --execute="CREATE USER '$MDB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$MP_MARIADB');"
sudomysql-uroot--execute="GRANT ALL ON bookstack.* TO '$MDB_USER'@'localhost';FLUSH PRIVILEGES;"######################################### Config BookStack ############################################ Installations BookStackcd~/gitclonehttps://github.com/BookStackApp/BookStack.git--branchrelease--single-branchbookstackcdbookstackcomposerinstall--no-devcp.env.example.envsudochown-Rvwww-data:www-datastoragebootstrap/cachepublic/uploads### Edition fichier de conf Bootstacksed-i-e"s;APP_URL=https://example.com;APP_URL=${urlbookstack};g".envsed-i-e"s;DB_DATABASE=database_database;DB_DATABASE=${MDB_Database};g".envsed-i-e"s;DB_USERNAME=database_username;DB_USERNAME=${MDB_USER};g".envsed-i-e"s;DB_PASSWORD=database_user_password;DB_PASSWORD=${MP_MARIADB};g".envcd~/sudomvbookstack//var/www/bookstack### Configuration clef PHPcd/var/www/bookstackphpartisankey:generate<<EOFyesEOFphpartisanmigrate<<EOFyesEOF######################################### Config NGINX HTTPS ############################################ Crรฉation du certificat et de la clef SSL autosignersudo openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=NA/ST=None/L=None/O=None/CN=${fqdn}" -keyout /etc/ssl/private/bookstack-selfsigned.key -out /etc/ssl/certs/bookstack-selfsigned.crt
### Delink le fichier defaultsudounlink/etc/nginx/sites-enabled/default### Config Nginx pour BookStacksudocp~/site-web/bookstack-nginx.conf/etc/nginx/sites-available/sudoln-s/etc/nginx/sites-available/bookstack-nginx.conf/etc/nginx/sites-enabled/bookstack-nginx.confsudo sed -i -e "s;ssl_certificate /etc/ssl/certs/self-sign-SSL-or-public-ssl.crt;ssl_certificate /etc/ssl/certs/bookstack-selfsigned.crt;g" /etc/nginx/sites-available/bookstack-nginx.conf
sudo sed -i -e "s;ssl_certificate_key /etc/ssl/private/self-sign-SSL-or-public-ssl.key;ssl_certificate_key /etc/ssl/private/bookstack-selfsigned.key;g" /etc/nginx/sites-available/bookstack-nginx.conf
sudo sed -i -e "s;server_name your_servers_name.domain.com;server_name $fqdn;g" /etc/nginx/sites-available/bookstack-nginx.conf
### Dรฉmarrage des servicessudosystemctlrestartnginxsudosystemctlrestartmariadbsudosystemctlrestartphp7.4-fpm######################################### Documentation et lien utile ##########################################Executer en utilisateur normal #Remplir les variables avant d'รฉxecuter#placer le fichier site web ร la racine de l'utilisateur /home/user/#Penser ร รฉditer le fichier /etc/hosts#https://dchan.tech/books/bookstack/page/manual-installation-on-debian-11