What is BookStack?
BookStack is an opinionated wiki system that provides a pleasant and simple out-of-the-box experience. New users to an instance should find the experience intuitive and only basic word-processing skills should be required to get involved in creating content on BookStack. The platform should provide advanced power features to those that desire it but they should not interfere with the core simple user experience. -https://github.com/BookStackApp/BookStack
Installation
- Download XAMPP Download
- Download BookStack Download
- Install Microsoft Visual C++
- Right click the downloaded XAMPP .zip file > Extract All...
- Right click the downloaded BookStack .zip file > Extract All...
- Rename the extracted folder bookstack
- Cut the bookstack folder inside the XAMPP directory
- Copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example
- Run XAMPP/setup_xampp.bat to update the configuration files with the new server location
Configuring the Web Server
- Navigate to XAMPP/php and edit php.ini
- Find the following line and remove the ; to uncomment them
extension=ldap
extension=gd - Save the changes to php.ini
- Navigate to XAMPP/apache/conf and edit httpd.conf
- Paste the following configuration at the bottom of the file, update the folder paths as needed
Alias /bookstack "C:/Program Files/xampp/bookstack/public/"
"C:/Program Files/xampp/bookstack/public/" - Save the changes to httpd.conf
- Install Composer
- Run XAMPP/xampp-control.exe
- Click the Start button next to Apache and MySQL
- Navigate to XAMPP/mysql/bin
- Hold the SHIFT key and right click in the white space > Open PowerShell window here...
- Type the following in the PowerShell window to setup the BookStack database
.\mysql -u root
CREATE DATABASE bookstack;
GRANT ALL ON bookstack.* to 'bookstack_rw'@'localhost' IDENTIFIED BY 'B00k$t@ck!';
FLUSH PRIVILEGES;
EXIT;
exit - Navigate to the XAMPP/bookstack folder > Right click in the white space > Open PowerShell window here...
- Run the following command to download dependencies
# create a copy of the sample .env file
cp .\.env.example .\.env
# edit .env in notepad
notepad .\.env - Modifying the following key/value pairs in .env as needed
APP_ENV=production
APP_DEBUG=false
APP_KEY=SomethingSecure
APP_URL=http://windows11.local/bookstack
APP_TIMEZONE='America/New_York'
APP_LOCALE=en
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=bookstack
DB_USERNAME=bookstack_rw
DB_PASSWORD=B00k$t@ck!
MAIL_DRIVER=smtp
MAIL_HOST=smtp.i12bretro.local
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDR=bookstack@i12bretro.local
MAIL_FROM_NAME='BookStack'
MAIL_REPLYTO_ADDR=bookstack@i12bretro.local
MAIL_REPLYTO_NAME='BookStack'
MAIL_AUTO_EMBED_METHOD='attachment' - Save the changes to .env
- Continue with the following commands in PowerShell
# install dependencies with composer
composer install --no-dev --no-plugins
# generate app key
php artisan key:generate --no-interaction --force
# migrate the database
php artisan migrate --no-interaction --force
BookStack Web Installer
- Open a web browser and navigate to http://DNSorIP/bookstack
- Login with the username admin@admin.com and the password password
- Click the user dropdown at the top right > My Account
- Update the user name and email address as needed > Click Save
- Select Access & Security from the left navigation menu
- Enter and confirm a new password > Click Update
- Click the user dropdown at the top right > Logout
- Log back in using the updated email address and password
- Welcome to BookStack
Source: https://www.bookstackapp.com/docs/admin/installation/#manual